[antlr-interest] C target, C grammar + AST = missing *_SymbolsPop()

Jan Obdržálek obdrzalek at gmail.com
Wed Jan 21 05:33:14 PST 2009


> "ss9_combined_lexer_parserParser.cpp: In function
> `ss9_combined_lexer_parserParser_translation_unit_return
> translation_unit(ss9_combined_lexer_parserParser_Ctx_struct*)':
> ss9_combined_lexer_parserParser.cpp:12842: error:
> `ptranslation_unit_SymbolsPop' undeclared (first use this function)"
>
> Sure enough, no such function exists.  Things work fine if I don't declare
> "output=AST"; in that case, the only SymbolsPop() function generated or
> called appears to be pss9_combined_lexer_parserParser_SymbolsPop(), i.e. all
> dynamic scope code calls the same ScopePop().  Does this ring any bells for
> anybody?

My GNU C grammar suffers from exactly the same problem (using
ANTLR-3.1.1). I sent the grammar to Jim earlier today (before I read
your post), with the description of the error.

Jan

--
Dr. Jan Obdržálek <obdrzalek at fi.muni.cz>
Faculty of Informatics, Masaryk University, Brno, Czech Republic


More information about the antlr-interest mailing list