On Sep 8, 2010, at 4:51 AM, James Ladd wrote:
> This is Yet Another Request for the Grammar to Pharo/Squeak Smalltalk?
>
> I have seen this:
http://wiki.squeak.org/squeak/409 but it is very old and doesn't appear to
> cater for Pharo/Squeak additions.
>
> Can someone point me to a more recent grammar?
Lukas did a grammar for Smalltalk with PetitParser. This has many additional benefits
over a traditional dead form of EBNF that it is
-> executable. It's just Smallltak. Smalltalk grammar described in Smalltalk.
So executing this code, you have a parser.
-> reflective dynamic grammar. After executing, the parser is a graph of smaller parser=objects that you
can inspect, modify and compose.
http://www.lukas-renggli.ch/blog/petitparser-1http://scg.unibe.ch/archive/papers/Reng10cDynamicGrammars.pdfGofer new
renggli: 'petit';
package: 'PetitParser';
load.
Gofer new
renggli: 'petit';
package: 'PetitSmalltalk';
load.
Alternatively, I will send you the SmaCC grammar we originally used in the compiler.
Marcus
--
Marcus Denker --
http://www.marcusdenker.deINRIA Lille -- Nord Europe. Team RMoD.
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project