Python Examples

For instructions on using the grammar, see the YAPPS page. I use YAPPS2.
I have included the compiled grammars, below, if you don't want to mess with yapps (and you don't need to change the grammar). To run this code, you need only download the interpreter "eopl?-?.py", the compile grammar "" and (optionally) the test program "". Put these files into a folder and then run "python" These require python 2 or better (because yapps2 requires python 2 or better).
  1. EOPL 3.5:
  2. EOPL 3.6:
  3. EOPL 3.7:
  4. EOPL 3.8: