Start work on parser code generation
This commit is contained in:
parent
99a6561db2
commit
562d780f9a
7 changed files with 583 additions and 4 deletions
13
src/code_gen/c_code.h
Normal file
13
src/code_gen/c_code.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef __tree_sitter__code_generator__
|
||||
#define __tree_sitter__code_generator__
|
||||
|
||||
#include "grammar.h"
|
||||
#include "parse_table.h"
|
||||
|
||||
namespace tree_sitter {
|
||||
namespace code_gen {
|
||||
std::string c_code(const Grammar &grammar, const lr::ParseTable &parse_table);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue