discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Syntax error with specific include file name

R
runsun
Fri, Jul 31, 2015 7:52 PM

Today I was testing valid colors (some of the color shown in web_colors on
wiki doesn't work).

So I extract the X11 color names from the  wiki web_colors page
https://en.wikipedia.org/wiki/Web_colors  , put them in a file named
'X11_colors.scad', and found that the line

 include <X11_colors.scad> 

got me this syntax err :

ERROR: Parser error in line 3: syntax error 
ERROR: Compilation failed! 

The include line is the only line in the code.

So I change the names to several variations, and found that
'X11_colors.scad' is the only one getting syntax error:

include <X10_colors.scad>
include <X12_colors.scad>
include <X11_color.scad>
include <X11_color_names.scad>
include <X11_colors.scad>

WARNING: Can't open include file 'X10_colors.scad'.  
WARNING: Can't open include file 'X12_colors.scad'.  
WARNING: Can't open include file 'X11_color.scad'. 
WARNING: Can't open include file 'X11_color_names.scad'. 
ERROR: Parser error in line 7: syntax error 
ERROR: Compilation failed! 

This is kind of weird.


$  Runsun Pan, PhD

$ -- libs: doctest , faces ( git ), offliner ( git );

tips: hash( 1 , 2 ), sweep , var

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Today I was testing valid colors (some of the color shown in web_colors on wiki doesn't work). So I extract the X11 color names from the wiki web_colors page <https://en.wikipedia.org/wiki/Web_colors> , put them in a file named 'X11_colors.scad', and found that the line include <X11_colors.scad> got me this syntax err : ERROR: Parser error in line 3: syntax error ERROR: Compilation failed! The include line is the only line in the code. So I change the names to several variations, and found that 'X11_colors.scad' is the only one getting syntax error: include <X10_colors.scad> include <X12_colors.scad> include <X11_color.scad> include <X11_color_names.scad> include <X11_colors.scad> WARNING: Can't open include file 'X10_colors.scad'. WARNING: Can't open include file 'X12_colors.scad'. WARNING: Can't open include file 'X11_color.scad'. WARNING: Can't open include file 'X11_color_names.scad'. ERROR: Parser error in line 7: syntax error ERROR: Compilation failed! This is kind of weird. ----- $ Runsun Pan, PhD $ -- libs: doctest , faces ( git ), offliner ( git ); tips: hash( 1 , 2 ), sweep , var $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382.html Sent from the OpenSCAD mailing list archive at Nabble.com.
R
runsun
Fri, Jul 31, 2015 7:58 PM

Wait, I take it back, pls discard this thread. Sorry for the hassle.


$  Runsun Pan, PhD

$ -- libs: doctest , faces ( git ), offliner ( git );

tips: hash( 1 , 2 ), sweep , var

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382p13383.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Wait, I take it back, pls discard this thread. Sorry for the hassle. ----- $ Runsun Pan, PhD $ -- libs: doctest , faces ( git ), offliner ( git ); tips: hash( 1 , 2 ), sweep , var $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382p13383.html Sent from the OpenSCAD mailing list archive at Nabble.com.
R
runsun
Fri, Jul 31, 2015 8:10 PM

color tests do show that all X11 colors, except RebeccaPurple, are
acceptable by OpenSCAD.

WARNING: Color name "rebeccapurple" unknown. Please see
WARNING: http://en.wikipedia.org/wiki/Web_colors


$  Runsun Pan, PhD

$ -- libs: doctest , faces ( git ), offliner ( git );

tips: hash( 1 , 2 ), sweep , var

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382p13384.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

color tests do show that all X11 colors, *except RebeccaPurple*, are acceptable by OpenSCAD. WARNING: Color name "rebeccapurple" unknown. Please see WARNING: http://en.wikipedia.org/wiki/Web_colors ----- $ Runsun Pan, PhD $ -- libs: doctest , faces ( git ), offliner ( git ); tips: hash( 1 , 2 ), sweep , var $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382p13384.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Sat, Aug 1, 2015 1:11 AM

Wikipedia > On 21 June 2014, the CSS WG added the color RebeccaPurple to the
Editor's Draft of the CSS4 Colors module, to commemorate Eric Meyer's
daughter Rebecca who died on 7 June 2014, her sixth birthday.

That's what happens when you fiddle with established standards.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382p13386.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Wikipedia > On 21 June 2014, the CSS WG added the color RebeccaPurple to the Editor's Draft of the CSS4 Colors module, to commemorate Eric Meyer's daughter Rebecca who died on 7 June 2014, her sixth birthday. That's what happens when you fiddle with established standards. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Syntax-error-with-specific-include-file-name-tp13382p13386.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Aug 2, 2015 2:45 PM

On 08/01/2015 03:11 AM, MichaelAtOz wrote:

Wikipedia > On 21 June 2014, the CSS WG added the color RebeccaPurple to the
Editor's Draft of the CSS4 Colors module, to commemorate Eric Meyer's
daughter Rebecca who died on 7 June 2014, her sixth birthday.

That's what happens when you fiddle with established standards.

Thanks, added to OpenSCAD too...

(https://github.com/openscad/openscad/pull/1406)

I've validated against all color names from https://drafts.csswg.org/css-color/
and the added RebeccaPurple is the only difference.

ciao,
Torsten.

On 08/01/2015 03:11 AM, MichaelAtOz wrote: > Wikipedia > On 21 June 2014, the CSS WG added the color RebeccaPurple to the > Editor's Draft of the CSS4 Colors module, to commemorate Eric Meyer's > daughter Rebecca who died on 7 June 2014, her sixth birthday. > > That's what happens when you fiddle with established standards. > Thanks, added to OpenSCAD too... (https://github.com/openscad/openscad/pull/1406) I've validated against all color names from https://drafts.csswg.org/css-color/ and the added RebeccaPurple is the only difference. ciao, Torsten.