diff --git a/src/compiler/build_tables/build_lex_table.cc b/src/compiler/build_tables/build_lex_table.cc index 612541e9..53bcd3a8 100644 --- a/src/compiler/build_tables/build_lex_table.cc +++ b/src/compiler/build_tables/build_lex_table.cc @@ -86,12 +86,11 @@ class LexTableBuilder { for (const rule_ptr &separator_rule : separator_rules) result.entries.insert(LexItem( symbol, rules::Seq::build({ - rules::Metadata::build( - separator_rule, - { - { rules::START_TOKEN, 1 }, - { rules::PRECEDENCE, -99999 }, - }), + rules::Metadata::build(separator_rule, + { + { rules::START_TOKEN, 1 }, + { rules::PRECEDENCE, -99999 }, + }), rule, }))); } @@ -136,7 +135,8 @@ class LexTableBuilder { LexItem::CompletionStatus completion_status = item.completion_status(); if (completion_status.is_done) { auto current_action = lex_table.state(state_id).default_action; - auto action = LexAction::Accept(item.lhs, completion_status.precedence, completion_status.is_string); + auto action = LexAction::Accept(item.lhs, completion_status.precedence, + completion_status.is_string); if (conflict_manager.resolve(action, current_action)) lex_table.state(state_id).default_action = action; } diff --git a/src/compiler/build_tables/parse_item.h b/src/compiler/build_tables/parse_item.h index 6a869b0f..3471f7ce 100644 --- a/src/compiler/build_tables/parse_item.h +++ b/src/compiler/build_tables/parse_item.h @@ -37,7 +37,6 @@ class ParseItem { int variable_index; const Production *production; unsigned int step_index; - }; class ParseItemSet { diff --git a/src/compiler/lex_table.cc b/src/compiler/lex_table.cc index 6b2b93fc..e74233fc 100644 --- a/src/compiler/lex_table.cc +++ b/src/compiler/lex_table.cc @@ -35,7 +35,8 @@ LexAction LexAction::Advance(size_t state_index, } LexAction LexAction::Accept(Symbol symbol, int precedence, bool is_string) { - return LexAction(LexActionTypeAccept, -1, symbol, { precedence, precedence }, is_string); + return LexAction(LexActionTypeAccept, -1, symbol, { precedence, precedence }, + is_string); } bool LexAction::operator==(const LexAction &other) const {