Closed mingodad closed 3 years ago
This is as intended. There is no reason to restrict to a single operator. Especially not on syntax level in the Item production - the parenthesized variant would still be allowed. Also, there is no problem at all with the semantics, and RR's grammar transformation will normalize it.
You may be wondering about ambiguities that could arise with some parser generation schemes, but that is a completely different issue.
Closing - works as it is supposed to.
Trying to implement
rr
grammar with CocoR https://ssw.jku.at/Research/Projects/Coco/ it seems that there is a mistake in therr
grammar for the productionitem
:If I understood it correctly it should be:
Because constructs like this are invalid, isn't it ?
Cheers !