tree-sitter/src/compiler/generate_code/c_code.h

22 lines
609 B
C
Raw Normal View History

2014-03-09 22:05:17 -07:00
#ifndef COMPILER_GENERATE_CODE_C_CODE_H_
#define COMPILER_GENERATE_CODE_C_CODE_H_
2013-12-15 19:33:34 -08:00
2014-03-09 22:45:33 -07:00
#include <string>
#include <map>
2014-03-09 21:37:21 -07:00
#include "compiler/parse_table.h"
#include "compiler/lex_table.h"
2013-12-15 19:33:34 -08:00
namespace tree_sitter {
class PreparedGrammar;
2014-04-25 22:17:23 -07:00
2014-01-11 15:14:17 -08:00
namespace generate_code {
std::string c_code(std::string name,
const ParseTable &parse_table,
const LexTable &lex_table,
const PreparedGrammar &syntax_grammar,
const PreparedGrammar &lexical_grammar);
2013-12-15 19:33:34 -08:00
}
}
2014-03-09 22:05:17 -07:00
#endif // COMPILER_GENERATE_CODE_C_CODE_H_