[antlr-interest] Filtering

Serafettin Senturk serafettin_sentuerk at intergral.com
Fri Apr 29 03:08:58 PDT 2005


  ok, thanks. then, how can i deal with filtering?

  Specifically, in my work, I have to distinguish between variable names and
statement names that look like each other.

  For example, i should make the distinguishment between "for" statement and
any variable starting with "for" like "foreign".

  For this reason, I get "for" with space(WS) or LPAREN by the help of the
lexer. Then, I pass it to the parser. The parser should take it and ignore
the LPAREN, a kind of filtering. Is this kind of filtering possible? If yes,
how can i realize it?

 Regards,
 Serafettin






More information about the antlr-interest mailing list