Lambda interpreter in ML.
Instructions: read the file! You can run the examples by loading ML and
saying use "lambda.ml"; then
e.g. try(exampletotry); or try(exampleFac7);.
Example calculator: Makefile with
Instructions: Download these three files to an empty directory and say "make".
Run it by saying "calc". Input lines are things like "1+2*3" "(1+2)*3" etc.
ZIPped sources for Jlex/cup example
[see Dr Norman's notes]
Instructions: Download both these files to an empty directory and say "make".
Then look at minimal.lex and minimal.cup (note that these
are the only user-written files (the rest is Java admin)).
Run it by saying "java parser". Input lines are things like "1+2*3;" "(1+2)*3;" etc.
Thanks to Dr Norman for this example.
(N.B. I've checked that this works on the linux PWF -- so it's your problem, not mine
or Dr Norman's, if it doesn't work elsewhere.)