[antlr-interest] ANTLR and Lua block comments

S E Hagar rcix2010 at gmail.com
Sun Feb 14 19:25:40 PST 2010


Hello,

I am fairly new to ANTLR and ANTLRWorks, and i'm using it in conjunction
with some other tools to bring Lua (http://lua.org/) to the /NET Framework.
I have a grammar file working on all parts of the lua syntax (thanks mostly
to Nicolai Mainero, i am basing it off of the Lua grammar provided on this
site), except for two things: blockquotes and block comments. If you check
the end of the section at http://www.lua.org/manual/5.1/manual.html#2.1 , it
provides the rules for blockquotes and blockcomments. What i haven't figured
out is how to properly parse this, can anyone help me?


More information about the antlr-interest mailing list