> OpenSCAD does not have a formal language description, the only description i
> know of is the parser.y sourcecode.
> https://github.com/openscad/openscad/blob/master/src/parser.y >
> This file is GPL2. Would making this file available under a more permissive
> license help spread OpenSCAD as a language ?
As Marcos points out, writing a parser isn’t the hardest part of OpenSCAD.
However, I see that it could post a decent sized barrier against OpenSCAD-compatible components (like importers or simple processors/generators), as writing parsers is a bit of a specialized area of software development.
Now, parser.y is quite dependent on OpenSCAD internals to be of direct use - lexer.l a bit less so.
FreeCAD’s parser is likely only able to read .csg files (i.e. no modules, functions or variables), but there are other parsers out there (e.g. openjscad).
If people think it would make a difference, I’d be happy to look into BSD/MIT/whatever licensing of the parser.y and lexer.l. Naturally, I’d like to see more Free Software tools related to OpenSCAD, but I’m still unsure about whether encouraging vs. forcing software to be Free is the best way to go.
Perhaps we could try to collect all the OpenSCAD compatible parsers out there into a contrib folder, and perhaps work towards making them testable against official OpenSCAD file format versions? That would make it a lot easier to kickstart support tools for programmers not familiar with writing parsers.