bad.ll1 459 B

123456789101112
  1. /*
  2. This is grammar for ll1 contains
  3. grammar errors (but not parse errors) that the ll1 tool should detect.
  4. */
  5. Grammar -> BadRecursion | BadMutualRecursion | UndefinedNonterminal .
  6. BadRecursion -> epsilon | BadRecursion | epsilon .
  7. BadMutualRecursion -> epsilon | BadMutualRecursion2 | epsilon .
  8. BadMutualRecursion2 -> epsilon | BadMutualRecursion | epsilon .
  9. UndefinedNonterminal -> IAmUndefined .
  10. UndefinedNonterminalRecursive -> UndefinedNonterminal .