A more permissive license for parser.y

classic Classic list List threaded Threaded
4 messages Options
Ivo
Reply | Threaded
Open this post in threaded view
|

A more permissive license for parser.y

Ivo
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 ?
Reply | Threaded
Open this post in threaded view
|

Re: A more permissive license for parser.y

marcosscriven
Fortunately, in the EU at least, computer languages can't be copyrighted:

http://curia.europa.eu/jcms/upload/docs/application/pdf/2012-05/cp120053en.pdf

Though the actual code of the parser is under GPL, writing your own parser would be one of the most trivial aspects of an OpenSCAD implementation.
Reply | Threaded
Open this post in threaded view
|

Re: A more permissive license for parser.y

Johannes Reinhardt
In reply to this post by Ivo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FreeCAD has a python parser for scad files that is LGPL 2+

https://github.com/jreinhardt/FreeCAD_sf_master/tree/master/src/Mod/OpenSCAD

On Sun, 18 May 2014 23:24:53 -0700 (PDT)
Ivo <[hidden email]> wrote:

> 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 ?
>
>
>
> --
> View this message in context:
> http://forum.openscad.org/A-more-permissive-license-for-parser-y-tp7956.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> _______________________________________________ OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566



- --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTeccWAAoJED3c2393ksVEdRMQAMgiWtdMLgd8j3iuS1CymxCP
ds8flu1VtBVyC7YFO4mxwAtpUgRUOWgvpRkTRsdhD8hGFjW5hKPaMPEOqblACPbr
22iB02C343LoB0WpvRZZCfs3p0RV8jEGxk6Mv5FJUVbyy8C6616LniDsU+a515P3
keIMe+375r1e1BgXZfxLZEPCV31XtSQuU9a/MY8WljHmDX86WXY2oh5JoN8jNwGf
0khgXbgc5uTjoOtwPnB3T1XSbe+ReAm6fkM7aPVM02YI9piftJdqTUyx3bVQHPSE
4odxJG7nMCSk6bqkMIhUQpAlUlTIkay8XmKOsQ+QGUfYjUjihqOqIHy3duWH4WwV
bqSWAeStuHX7ILwyc7IMtykIU/IW5oORsUc+pT0HxPrx88o3tImlVHmU02et+Gid
jexg/M3YgKkHjwe9IDaJfRtsXjwBxOA68By0qJCynayTVlnSIlWewLZ4YdmaTxFD
gomwzVqIelEnDC7eLLVRbAo3vdVzGGb8XCd6EUkAKVXNwEYh+IDC1EIrwSGGzxTi
eLb/ESJenUtNpQtOM+Hbs5RVZwxqlNrBH+UetwwyRRtZRr7zI5YziR/P/u1oIUPH
szJHi4t8uVcig3pl9oODZHfBd7t9zydoIm3olv9CG6hAMR2fxo89fY7ThmZI151e
1skYQS/chNjahL7dzd2O
=rS7/
-----END PGP SIGNATURE-----
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: A more permissive license for parser.y

kintel
Administrator
In reply to this post by Ivo
On May 19, 2014, at 02:24 AM, Ivo <[hidden email]> wrote:

> 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.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566