Generate parse tables and code using pre-processed grammars
This commit is contained in:
parent
2621f06315
commit
2afd8843dc
27 changed files with 272 additions and 285 deletions
|
|
@ -49,8 +49,6 @@ namespace tree_sitter {
|
|||
LexState::LexState() : actions(unordered_map<CharMatch, unordered_set<LexAction>>()) {}
|
||||
|
||||
// Table
|
||||
LexTable::LexTable(vector<string> rule_names) : symbol_names(rule_names) {}
|
||||
|
||||
size_t LexTable::add_state() {
|
||||
states.push_back(LexState());
|
||||
return states.size() - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue