This project has moved and is read-only. For the latest updates, please go here.

Lua Grammer

Feb 10, 2010 at 7:01 PM
Edited Feb 10, 2010 at 7:11 PM

I have been trying to convert the Lua grammer from VSLua into one that can be used to generate an AST. I'm in the middle of the process, but I'd be interested in some input about what I have so far.

The grammer is

I should add that anywhere you see "new NonTerminal" in a rule, thats just basically a "todo" item.

Right now I am stuck on the FuncName production. It will have to be broken up some more.

Any input or tips would be welcome.



Feb 16, 2010 at 7:13 PM

Will have a look, not sure when it might happen, quite busy with million other things right now 

Do you mind if I add this grammar to samples? if it goes well and we can fix it of course.

Feb 16, 2010 at 8:05 PM
Edited Feb 16, 2010 at 8:06 PM

Thanks. No rush, I'm quite busy myself. 

I don't have any problem with the grammar being added to the samples. Since the grammar is just some modifications to VSLua's grammar - so you might want to ask VSLua's author as well. (Though VSLua uses the MIT license so it shouldn't be a problem)