Rename files to avoid duplicate basenames
This commit is contained in:
parent
207ed44fdf
commit
e479773aac
8 changed files with 38 additions and 37 deletions
|
|
@ -1,13 +1,13 @@
|
|||
#include "tree_sitter/compiler.h"
|
||||
#include "prepare_grammar/perform.h"
|
||||
#include "build_tables/perform.h"
|
||||
#include "prepare_grammar/prepare_grammar.h"
|
||||
#include "build_tables/build_tables.h"
|
||||
#include "generate_code/c_code.h"
|
||||
#include "prepared_grammar.h"
|
||||
|
||||
namespace tree_sitter {
|
||||
std::string compile(const Grammar &grammar, std::string name) {
|
||||
auto grammars = prepare_grammar::perform(grammar);
|
||||
auto tables = build_tables::perform(grammars.first, grammars.second);
|
||||
auto grammars = prepare_grammar::prepare_grammar(grammar);
|
||||
auto tables = build_tables::build_tables(grammars.first, grammars.second);
|
||||
return generate_code::c_code(name, tables.first, tables.second);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue