First page Back Continue Last page Overview Graphics
Prioritized Choice with Backtracking
S A / B means:
- “To parse an S, first try to parse an A.
If A fails, then backtrack and try to parse a B.”
Example from the C++ standard:
- “An expression-statement ... can be indistinguishable from a declaration ... In those cases the statement is a declaration.”