Thursday 15 September 2011

parsing - LALR(2) dangling else -


LLRR (2) is able to swing naturally and handle the matter (with no special rules, as with LALR (1))?

Thanks

This is unclear, however, this is not a problem because The well-treated LLRR parser will solve the ambiguity by choosing the change instead of reducing the generator option. This is what you want - "and" to match the previous "if" statement, then the conclusion is: There is no problem, you just have to understand the default choice which the parser generator makes for all the changes - to reduce the ambiguity Do this default can be overridden with some discrepancies, like "rule" or "yacc" with "% exact" operator.
But this is another advanced topic


No comments:

Post a Comment