[antlr-interest] newbie, need help!

Terry Ma matianyi at legendapl.com
Tue May 11 02:37:08 PDT 2010


hello, everyone.

I want to parse the statement like following:

any character <#if expression> any character </#if> any character

I want to consume any character until find <#if ...>,
and then consume any character until find next </#if>,
and so on.

can i use antlr to do this?
i don't know how to write the grammar to parse the above statement.


Terry.



More information about the antlr-interest mailing list