[antlr-interest] Re: Parsing Nested Multi-line text

Xue Yong Zhi seclib at seclib.com
Tue Feb 28 10:42:58 PST 2006


Kurt Rayner wrote:

> 
> One would expect the names in the nested blocks would be different, but 
> the existing parser doesn’t seem to care, and I have found exceptions.
> 
> Also note that the embedded text does NOT have to be parseable.
>   

Are you aware you are parsing heredoc?

In my ruby antlr parser, I overwrite the generated lexer. The lexer will 
maitain states so that it can switch from "normal" mode to "heredoc 
content" mode.

-- 
Xue Yong Zhi
http://seclib.blogspot.com



More information about the antlr-interest mailing list