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>
|
2013-12-15 19:33:34 -08:00
|
|
|
|
|
|
|
|
namespace tree_sitter {
|
2014-10-12 12:27:19 -07:00
|
|
|
|
|
|
|
|
class LexTable;
|
2014-07-20 21:43:27 -07:00
|
|
|
class LexicalGrammar;
|
2014-10-12 12:27:19 -07:00
|
|
|
class ParseTable;
|
|
|
|
|
class SyntaxGrammar;
|
2014-04-25 22:17:23 -07:00
|
|
|
|
2014-07-20 21:43:27 -07:00
|
|
|
namespace generate_code {
|
|
|
|
|
|
2014-10-12 12:27:19 -07:00
|
|
|
std::string c_code(std::string, const ParseTable &, const LexTable &,
|
|
|
|
|
const SyntaxGrammar &, const LexicalGrammar &);
|
2014-07-20 21:43:27 -07:00
|
|
|
|
|
|
|
|
} // 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_
|