ImplicitCAD icon indicating copy to clipboard operation
ImplicitCAD copied to clipboard

OpenSCAD parser issue

Open Jacoby6000 opened this issue 5 years ago • 3 comments

I've come across an openscad lib which seems to find bugs in the parser.

https://www.dkprojects.net/openscad-threads/threads.scad

$ extopenscad lib/threads.scad 
Loading File.
Processing File.
(line 100, column 8):
unexpected "m"
expecting "//", "/*" or "("

The line(s) referenced:

module metric_thread (diameter=8, pitch=1, length=1, internal=false, n_starts=1,
                      thread_size=-1, groove=false, square=false, rectangle=0,
                      angle=30, taper=0, leadin=0, leadfac=1.0, test=false)

This same file is processed fine via openscad

Jacoby6000 avatar Jul 10 '20 15:07 Jacoby6000

sadly, that can be a problem inside of the code in the module, not just at the line it is reported.

julialongtin avatar Jul 12 '20 16:07 julialongtin

looking at that scad file, there are several primitives we do not support.

julialongtin avatar Jul 12 '20 17:07 julialongtin

Ah I see. I'll see if I can do some hacking. 👍

Jacoby6000 avatar Jul 14 '20 15:07 Jacoby6000