[antlr-interest] Bug report; generated C code fails to compile with empty scopes

Richard Thrippleton richard.thrippleton at progress.com
Mon Mar 30 03:17:25 PDT 2009


With rules of the form

"rulename
scope {}
..."

the generated code for that rule will attempt to push and pop the 
rulename scope stack, but the Push, Pop and Top members have not been 
defined.

(fwiw, empty scopes are actually useful in the grammars I'm building :-) )

Richard


More information about the antlr-interest mailing list