[OpenSCAD] Curious lack of error message

Giles Bathgate giles.bathgate at gmail.com
Mon Jul 16 12:07:06 CEST 2012


You would have to be careful how you fix this, it should probably
allow multi line use statements so the error condition is when it has
an EOF token before a closing > e.g:

use <this
is not);
a)
syntax);
error
>
EOF

use <this
is)
a;
syntax);
error

EOF

Regards

Giles

On 16 July 2012 10:49, David Goodenough
<david.goodenough at linkchoose.co.uk> wrote:
> I made a typo, and openscad reported only that there were no
> top level objects to work with.  The type was:-
>
> use <file.scad);
>
> In other workds I used a ) not a >.  I presume that the parser
> simply ran to the end of the file looking for a > and did not find one.
>
> I would have expected a syntax error in that the use statement
> effectively never finishes.
>
> David
> _______________________________________________
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566


More information about the OpenSCAD mailing list