18 lines
533 B
C++
18 lines
533 B
C++
#ifndef COMPILER_GENERATE_CODE_C_CODE_H_
|
|
#define COMPILER_GENERATE_CODE_C_CODE_H_
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include "compiler/parse_table.h"
|
|
#include "compiler/lex_table.h"
|
|
|
|
namespace tree_sitter {
|
|
namespace generate_code {
|
|
std::string c_code(std::string name,
|
|
const ParseTable &parse_table,
|
|
const LexTable &lex_table,
|
|
const std::map<rules::Symbol, std::string> &symbol_names);
|
|
}
|
|
}
|
|
|
|
#endif // COMPILER_GENERATE_CODE_C_CODE_H_
|