My parser basically works by calling various functions that build a big parse tree. Something like this:
identifier: LOCALIDENTIFIER { $$ = CreateIdentifierNode(yytext); } The problem is that I need to be able to detect errors within those functions (for example, is the identifier name too long) and propagate them back to Bison. But I don't know how. I don't have access to the YYERROR macro in those functions, and I can't manually "goto yyerrorlab;" since I'm in a different function. How can I do it? -- View this message in context: http://www.nabble.com/How-to-raise-an-error-tp25824253p25824253.html Sent from the Gnu - Bison - Help mailing list archive at Nabble.com. _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison