Add PREC_DYNAMIC rule for resolving runtime ambiguities
This commit is contained in:
parent
cb652239f6
commit
d8e9d04fe7
24 changed files with 316 additions and 83 deletions
|
|
@ -136,9 +136,14 @@ ostream &operator<<(ostream &stream, const Variable &variable) {
|
|||
return stream << "(Variable " << variable.name << " " << variable.rule << ")";
|
||||
}
|
||||
|
||||
ostream &operator<<(ostream &stream, const Production &production) {
|
||||
return stream << "(Production " << production.steps << " " <<
|
||||
to_string(production.dynamic_precedence) << ")";
|
||||
}
|
||||
|
||||
ostream &operator<<(ostream &stream, const SyntaxVariable &variable) {
|
||||
return stream << "(Variable " << variable.name << " " << variable.productions <<
|
||||
" " << to_string(variable.type) << "}";
|
||||
" " << to_string(variable.type) << ")";
|
||||
}
|
||||
|
||||
ostream &operator<<(ostream &stream, const LexicalVariable &variable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue