1 #ifndef _LIBSAPLING_PARSER_ACTION_TABLE_H_
2 #define _LIBSAPLING_PARSER_ACTION_TABLE_H_
13 typedef struct action_table *action_table_t;
92 int sym,
int action_info);
void action_table__set_action(action_table_t tbl, grammar_t g, int state, int sym, int action)
Sets the parser action to perform on a particular state and terminal.
int action_table__get_action(action_table_t tbl, grammar_t g, int state, int sym)
Returns the parser action to perform on a particular state and terminal.
action_table_t new_action_table(grammar_t g, node_t *C)
Allocates memory for an action table on the heap.
int action_table__get_action_info(action_table_t tbl, grammar_t g, int state, int sym)
Returns the parser action information on a particular state and terminal.
void action_table__set_action_info(action_table_t tbl, grammar_t g, int state, int sym, int action_info)
Sets the parser action information on a particular state and terminal.
action_table_t action_table__build(grammar_t g, node_t *C)
Builds the action table.