Rename files to avoid duplicate basenames

This commit is contained in:
Max Brunsfeld 2014-03-02 15:07:43 -08:00
parent 207ed44fdf
commit e479773aac
8 changed files with 38 additions and 37 deletions

View file

@ -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);
}
}