[antlr-interest] Problem writing a Grammar
lists at mainiero.de
lists at mainiero.de
Fri May 4 03:53:50 PDT 2007
Hi,
I'm trying to write a ANTLR grammar for Lua (www.lua.org). They have the
syntax on the documentation pages, an I stated just copying this int
ANTLRWorks and changing the syntax accordingly.
It looked like a walk-trough but i got struggled as ANTLRWorks reported
this in its console
Aborting because the following rules are mutually left-recursive:
[functioncall, prefixexp, var]
Perhaps anyone can have a look at it to give me hints or solutions how
to get this grammar correct. I'm willing to donate this grammar, to
make it available on the ANTLR side.
Thanks
Nicolai Mainiero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Lua.g
Type: application/octet-stream
Size: 2649 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070504/069bf557/attachment-0001.obj
More information about the antlr-interest
mailing list