1 #ifndef _LIBSAPLING_PARSER_GOTO_TABLE_H_
2 #define _LIBSAPLING_PARSER_GOTO_TABLE_H_
13 typedef struct goto_table *goto_table_t;
void goto_table__set_state(goto_table_t tbl, grammar_t g, int state, int sym, int go_to_state)
Sets the state to go to after reducing a production.
goto_table_t new_goto_table(grammar_t g, node_t *C)
Allocates memory for a goto table on the heap.
goto_table_t goto_table__build(grammar_t g, node_t *C)
Builds the goto table.
int goto_table__get_state(goto_table_t tbl, grammar_t g, int state, int sym)
Returns the state to go to after reducing a production.