[antlr-interest] Context Sensitive Keyword Support?

chris king kingces95 at gmail.com
Wed Feb 16 13:32:21 PST 2011


Does ANTLR support context sensitive keywords? For example, in C# "where" is
a keyword only in a LINQ expression. To support this ANTLR would need to
change the lexer behavior given feedback from the parser letting it know
what context it is in. From what I hear ANTLR lexes the entire file before
passing it onto the parser. If that's true than I guess it doesn't support
this language concept. In that case, is there a way to work around?

Thanks,
Chris


More information about the antlr-interest mailing list