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 {
|
2014-01-11 15:14:17 -08:00
|
|
|
namespace generate_code {
|
2014-01-23 13:44:49 -08:00
|
|
|
std::string c_code(std::string name, std::vector<std::string> rule_names, const ParseTable &parse_table, const LexTable &lex_table);
|
2013-12-15 19:33:34 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|