Remove subclasses of Symbol for terminals and non-terminals
This commit is contained in:
parent
ed80d9cf52
commit
29c81167c0
23 changed files with 88 additions and 191 deletions
|
|
@ -38,6 +38,10 @@ namespace tree_sitter {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool Grammar::has_definition(const rules::Symbol &symbol) const {
|
||||
return rules.find(symbol.name) != rules.end();
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream &stream, const Grammar &grammar) {
|
||||
stream << string("#<grammar: ");
|
||||
bool started = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue