2013-12-15 19:33:34 -08:00
|
|
|
#ifndef __tree_sitter__code_generator__
|
|
|
|
|
#define __tree_sitter__code_generator__
|
|
|
|
|
|
|
|
|
|
#include "grammar.h"
|
|
|
|
|
#include "parse_table.h"
|
2013-12-27 17:31:08 -08:00
|
|
|
#include "lex_table.h"
|
2013-12-15 19:33:34 -08:00
|
|
|
|
|
|
|
|
namespace tree_sitter {
|
|
|
|
|
namespace code_gen {
|
2014-01-03 22:42:05 -08:00
|
|
|
std::string c_code(std::vector<std::string> rule_names, const lr::ParseTable &parse_table, const lr::LexTable &lex_table);
|
2013-12-15 19:33:34 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|