Allow anonymous tokens to be used in grammars' external token lists

This commit is contained in:
Max Brunsfeld 2017-03-17 16:31:29 -07:00
parent e2baf0930b
commit ed8fbff175
24 changed files with 282 additions and 183 deletions

View file

@ -132,7 +132,7 @@ ostream &operator<<(ostream &stream, const Rule &rule) {
} // namespace rules
ostream &operator<<(ostream &stream, const InputGrammar::Variable &variable) {
ostream &operator<<(ostream &stream, const Variable &variable) {
return stream << "(Variable " << variable.name << " " << variable.rule << ")";
}
@ -165,18 +165,6 @@ ostream &operator<<(ostream &stream, const PrecedenceRange &range) {
}
}
namespace prepare_grammar {
ostream &operator<<(ostream &stream, const prepare_grammar::InternedGrammar::Variable &variable) {
return stream << "(Variable " << variable.name << " " << variable.rule << ")";
}
ostream &operator<<(ostream &stream, const prepare_grammar::InitialSyntaxGrammar::Variable &variable) {
return stream << "(Variable " << variable.name << " " << variable.rule << ")";
}
} // namespace prepare_grammar
namespace build_tables {
ostream &operator<<(ostream &stream, const LexItem &item) {