[antlr-interest] Multiple lexers and parsers in one grammar file

Ric Klaren klaren at cs.utwente.nl
Tue Jan 21 11:17:08 PST 2003


On Tue, Jan 21, 2003 at 05:45:50PM -0000, rmsanjivp <rmsanjivp at yahoo.com> wrote:
> THe documentation for 2.7.1 shows that we can have multiple lexer and 
> parser classes in one grammar file. But when I try to write two lexer 
> classes and two parser classes in a file I get the error while 
> generating the code that the grammar file may have only one lexer or 
> parser.
> 
> Is it not possible to have multiple lexer and parser classes in one 
> grammar file?

No this is a documentation bug. (thought I fixed it once.. prolly meant to
then ;) )

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Before they invented drawing boards, what did they go back to?


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list