[OpenSCAD] Curious lack of error message

nop head nop.head at gmail.com
Mon Jul 16 12:13:11 CEST 2012


Why would you ever want to have new lines in a file path?

On 16 July 2012 11:07, Giles Bathgate <giles.bathgate at gmail.com> wrote:

> 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
> _______________________________________________
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rocklinux.net/pipermail/openscad/attachments/20120716/cfd9f1ef/attachment.html


More information about the OpenSCAD mailing list