[antlr-interest] Re: nesting level problem with Visual C++ 7.0 (Visual Studio .NET)

jsrs701 jsrs701 at yahoo.com
Tue Jun 18 13:18:40 PDT 2002

Hi Alan,

You could always have your lexer simply return a TAG_NAME token, and 
then use semantic predicates in the parser to differentiate among the 
tag names.

Just a thought.

--- In antlr-interest at y..., "alanpfranks" <alan.franks at v...> wrote:
> Hi-
> I am developing a parser for an XML/SGML variant with a
> large number of tag types.  This has resulted in a
> deeply nested MyLexer::nextToken() function.  In fact,
> the nesting levels are so deep that Visual C++ 7.0
> produces the following error:
>  c:\dev\MyLexer.cpp(539): fatal error C1061: compiler limit : 
> nested too deeply
> I'm using Antlr 2.7.1, and generating C++ (obviously).
> Anyone have any ideas how I could fix/workaround this,
> without massaging the C++ code that Antlr produces?
> thanks-
> -Alan Franks
> -Beckmann Technologies


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

More information about the antlr-interest mailing list