Separate table building operations from Item, ItemSet value objects
This commit is contained in:
parent
92cec5758f
commit
8881214f0d
18 changed files with 218 additions and 166 deletions
|
|
@ -10,11 +10,11 @@ namespace tree_sitter {
|
|||
return make_shared<Blank>();
|
||||
}
|
||||
|
||||
char_ptr character(char value) {
|
||||
rule_ptr character(char value) {
|
||||
return make_shared<Character>(value);
|
||||
}
|
||||
|
||||
char_ptr character(CharClass value) {
|
||||
rule_ptr character(CharClass value) {
|
||||
return make_shared<Character>(value);
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ namespace tree_sitter {
|
|||
return make_shared<String>(value);
|
||||
}
|
||||
|
||||
sym_ptr sym(const string &name) {
|
||||
rule_ptr sym(const string &name) {
|
||||
return make_shared<Symbol>(name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue