192428916f
- update to 0.1.20: * src/tree.c (makeInline): Inline nodes remember their parent rule. * Replace "$$" in inline actions with "__". * src/tree.h (struct Inline): Inline nodes remember their parent rule. * (main): Don't print #line directives for headers if nolineFlag is set. * src/compile.c (allocateVariables): Separated from defineVariables. * (Node_compile_c_ko): Allocates and sets local variables during parse. * (Rule_compile_c2): Generate yyEnter and yyLeave if rule has variables. * (preamble): Macros yyEnter and yyLeave manage local variable space on stack during parsing. * src/compile.c: Allow re-entrant parsing. * Macro YYPARSEFROM_R names the function yyparsefrom_r(). * yyDone takes second argument, the yythunkpos at which actions start. * yyparsefrom_r saves and restores thunkpos and val state during recursive parse. * yyparsefrom resets thunkpos, val before recursive parse. - Update to 0.1.18:
Dirk Mueller2023-11-25 22:18:21 +00:00