[antlr-interest] Multiple Lexers

Serafettin Senturk serafettin_sentuerk at intergral.com
Tue Jun 21 03:51:02 PDT 2005


 Hello,

 Does anybody know how I can associate multiple lexers with multiple parsers
in different contexts? I mean, If I have P1 and P2 parsers, L1 and L2
lexers, how can I say that P1 will use the tokens coming from L1 and
separately P2 will use the tokens coming from L2 in the same application?
 I could not succeed with the "TokenStreamSelector" mechanism. Is there
another solution to this problem?


 Ragards,
 Serafettin





More information about the antlr-interest mailing list