Description: Fix various issues with the C template (backports of patchs proposed upstream) Origin: backport, https://github.com/stephengaito/antlr3/commit/adc5e54 https://github.com/stephengaito/antlr3/commit/71df80c --- a/tool/src/main/resources/org/antlr/codegen/templates/C/C.stg +++ b/tool/src/main/resources/org/antlr/codegen/templates/C/C.stg @@ -2132,7 +2132,9 @@ LRECOVER(); +); +!> goto ruleEx; }<\n> @@ -2143,7 +2145,10 @@ EXCEPTION->type = ANTLR3_MISMATCHED_SET_EXCEPTION; EXCEPTION->name = (void *)ANTLR3_MISMATCHED_SET_NAME; +EXCEPTION->expectingSet = NULL; +expectingSet = &FOLLOW_set_in_; +!> >> @@ -2510,7 +2515,7 @@ */ static const ANTLR3_INT32 * const dfa_transitions[] = { - _T}; separator=", ", wrap="\n", null="_empty"> + _T}; separator=", ", wrap="\n", null="NULL"> };