diff options
Diffstat (limited to 'demos/sample-files/calc-defs.c')
| -rw-r--r-- | demos/sample-files/calc-defs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/sample-files/calc-defs.c b/demos/sample-files/calc-defs.c index b9d1788..9385a02 100644 --- a/demos/sample-files/calc-defs.c +++ b/demos/sample-files/calc-defs.c @@ -12,7 +12,7 @@ enum symbol { SYMBOLS(X_TO_ENUM) }; size_t total_symbols = SYMBOLS_END; -extern char **symbol_to_str = (char *([])){ SYMBOLS(X_TO_STR) }; +char **symbol_to_str = (char *([])){ SYMBOLS(X_TO_STR) }; IMPLEMENT_FUNCPTR(int, symbol_is_terminal, (symbol s)) { return s < EP; } IMPLEMENT_FUNCPTR(int, symbol_is_input_end, (symbol s)) { return s == END_INPUT; } @@ -38,6 +38,8 @@ static struct production _grammar[] = { struct production *grammar = _grammar; size_t total_productions = sizeof(_grammar)/sizeof(*_grammar); +char *stack_item_type = "int"; + // #include "???.h" char **semantic_action_str = (char *([])){ "v = A(0);", |
