[antlr-interest] Trying to parsing CFML (ColdFusion)

Johannes Luber jaluber at gmx.de
Wed Feb 6 14:29:48 PST 2008


Gaulin, Mark schrieb:
> Is this grammar (& lexer) possible with ANTLR?  For someone new to it?  
> It started to feel like this is a case of an "island grammar", but even 
> attempting to parse a "simple" quoted string (that can contain hashes) 
> all by itself is blowing my mind... the lexer is very very context 
> dependent.
>  
> Can anyone offer some advice?  I'm almost tempted to just write the 
> thing in straight java, but that feels lame (and tedious).

This looks like that you need at least to control the lexer from the 
parser. That isn't possible in ANTLR yet, but doable to add it yourself. 
I suppose that will be less work than to write a parser yourself.

Johannes


More information about the antlr-interest mailing list