Make Grammar a simple struct
This commit is contained in:
parent
4b04afac5e
commit
36870bfced
16 changed files with 53 additions and 100 deletions
|
|
@ -12,7 +12,7 @@ ostream &operator<<(ostream &stream, const Grammar &grammar) {
|
|||
stream << string("#<grammar");
|
||||
stream << string(" rules: {");
|
||||
bool started = false;
|
||||
for (auto pair : grammar.rules()) {
|
||||
for (auto pair : grammar.rules) {
|
||||
if (started)
|
||||
stream << string(", ");
|
||||
stream << pair.first;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue