From faecdcbb2fa85034e6ab8e14fcbc6919a598ab4b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 12 Oct 2014 12:57:46 -0700 Subject: [PATCH] Tidy up build_tables function --- src/compiler/build_tables/build_tables.cc | 3 +-- src/compiler/build_tables/build_tables.h | 9 ++++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/compiler/build_tables/build_tables.cc b/src/compiler/build_tables/build_tables.cc index de9d8853..f1903f08 100644 --- a/src/compiler/build_tables/build_tables.cc +++ b/src/compiler/build_tables/build_tables.cc @@ -1,6 +1,5 @@ -#include "compiler/build_tables/build_tables.h" -#include "compiler/build_tables/build_parse_table.h" #include "compiler/build_tables/build_lex_table.h" +#include "compiler/build_tables/build_parse_table.h" #include "compiler/prepared_grammar.h" namespace tree_sitter { diff --git a/src/compiler/build_tables/build_tables.h b/src/compiler/build_tables/build_tables.h index 6cea52b7..c2be69a8 100644 --- a/src/compiler/build_tables/build_tables.h +++ b/src/compiler/build_tables/build_tables.h @@ -8,13 +8,16 @@ #include "compiler/lex_table.h" namespace tree_sitter { + class SyntaxGrammar; class LexicalGrammar; namespace build_tables { + std::tuple> build_tables( - const SyntaxGrammar &grammar, const LexicalGrammar &lex_grammar); -} -} + const SyntaxGrammar &, const LexicalGrammar &); + +} // namespace build_tables +} // namespace tree_sitter #endif // COMPILER_BUILD_TABLES_BUILD_TABLES_H_