Lua Grammer

Feb 10, 2010 at 6:01 PM
Edited Feb 10, 2010 at 6: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 http://bitbucket.org/sylvanaar2/lua-for-irony/src/tip/LuaGrammer.cs

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.

Thanks!

Jon

Coordinator
Feb 16, 2010 at 6: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 7:05 PM
Edited Feb 16, 2010 at 7: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 http://vslua.codeplex.com/ - so you might want to ask VSLua's author as well. (Though VSLua uses the MIT license so it shouldn't be a problem)