| or_expr:
|     expr               {}
|   | or_expr OR or_expr {}
| 
| ...
|  ANSWER expr WITH or_expr

Hans is right: this is the kind of grammar transformation you ought to
do if you were using a dumb tool.  But do not do that: you are going
to make your grammar much more complex, harder to maintain, and you
will even loose performances.

Just as nobody would ever program a expr/term/factor grammar for
arithmetics in LR, you should avoid the solution above.

_______________________________________________
Freecard-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freecard-general

Reply via email to