Tidy up build_tables function
This commit is contained in:
parent
8379d9387c
commit
faecdcbb2f
2 changed files with 7 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -8,13 +8,16 @@
|
|||
#include "compiler/lex_table.h"
|
||||
|
||||
namespace tree_sitter {
|
||||
|
||||
class SyntaxGrammar;
|
||||
class LexicalGrammar;
|
||||
|
||||
namespace build_tables {
|
||||
|
||||
std::tuple<ParseTable, LexTable, std::vector<Conflict>> 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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue