Compute transitions for regex pattern rules
This commit is contained in:
parent
040ec86000
commit
ecd317ccd9
13 changed files with 206 additions and 23 deletions
|
|
@ -16,7 +16,7 @@ namespace tree_sitter {
|
|||
|
||||
bool Symbol::operator==(const Rule &rule) const {
|
||||
const Symbol *other = dynamic_cast<const Symbol *>(&rule);
|
||||
return (other != NULL) && (other->name == name);
|
||||
return other && (other->name == name);
|
||||
}
|
||||
|
||||
std::string Symbol::to_string() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue