Remove ItemSet class; just use a set
This commit is contained in:
parent
29f73afbc5
commit
d015d57a53
11 changed files with 93 additions and 162 deletions
|
|
@ -33,6 +33,10 @@ namespace tree_sitter {
|
|||
return rule_names_eq && rules_eq && consumed_sym_counts_eq;
|
||||
}
|
||||
|
||||
bool Item::operator<(const Item &other) const {
|
||||
return rule_name < other.rule_name;
|
||||
}
|
||||
|
||||
bool Item::is_done() const {
|
||||
for (auto pair : rule_transitions(rule))
|
||||
if (*pair.first == rules::Blank())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue