[antlr-interest] Bug report; use of multiple global scopes in a rule fails to push one of them (generated C code)

Richard Thrippleton richard.thrippleton at progress.com
Mon Mar 30 03:27:16 PDT 2009


A rule of the form:

"rulename
scope scope1;
scope scope2;"

will generate code that only pushes a new element onto the scope2 stack.

However, the following modification _will_ generate correct C code.
"rulename
scope scope1,scope2;"


Richard


More information about the antlr-interest mailing list