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

24 lines
611 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 SyntaxGrammar;
class LexicalGrammar;
2014-04-25 22:17:23 -07:00
namespace generate_code {
std::string c_code(std::string name, const ParseTable &parse_table,
const LexTable &lex_table,
const SyntaxGrammar &syntax_grammar,
const LexicalGrammar &lexical_grammar);
} // namespace generate_code
} // namespace tree_sitter
2013-12-15 19:33:34 -08:00
2014-03-09 22:05:17 -07:00
#endif // COMPILER_GENERATE_CODE_C_CODE_H_