- Eclipse projects
- Digits example
- Grammar experimentation.
This project runs CUP on grammar.cup, dumping states so you can see
the construction.Two
grammars are included:
- expr.cup -- standard expression grammar
- ambig.cup -- ambiguous expression grammar
- A grammar that is LR(1) but not LALR(1),
similar to Exercise 4.7.5 on page 278 of purple text.
- An grammar
that is inherently ambiguous: there
is no unambiguous grammar for this grammar's language.
- A grammar that is LALR(2) but not LALR(1)
- Visitor pattern
- Inner classes
Last modified 15:11:07 CDT 16 April 2008
by Ron K. Cytron