Rename out_of_context_states -> recovery_states

This commit is contained in:
Max Brunsfeld 2016-04-27 14:14:56 -07:00
parent 5b74813a5c
commit 9ad1e36238
3 changed files with 6 additions and 6 deletions

View file

@ -100,7 +100,7 @@ class CCodeGenerator {
add_symbol_node_types_list();
add_lex_function();
add_lex_states_list();
add_out_of_context_parse_states_list();
add_recovery_parse_states_list();
add_parse_table();
add_in_progress_symbol_table();
add_parser_export();
@ -220,8 +220,8 @@ class CCodeGenerator {
line();
}
void add_out_of_context_parse_states_list() {
line("static TSStateId ts_out_of_context_states[SYMBOL_COUNT] = {");
void add_recovery_parse_states_list() {
line("static TSStateId ts_recovery_states[SYMBOL_COUNT] = {");
indent([&]() {
for (const auto &entry : parse_table.error_state.actions) {
const rules::Symbol &symbol = entry.first;