Commit cbc85c5e authored by Ronald Charles Moore's avatar Ronald Charles Moore
Browse files

Updated in the web (!)

parent ce858db2
Everything here is taken from the slides for the "Compiler Construction"
......@@ -16,6 +16,42 @@ You are in the following subdirectory
See **Chapter 1 Front End Construction**, Slides 21 and 22 (and please let me know when the inevitable day comes that these slide numbers are no longer correct).
Building and Running
Build the program by running `make`.
In case of doubt, use the voodo command `make clean` and then repeat `make`.
To test the program, run `make test`. This also illustrates how the intepreter is used.
Alternatively, just run the program with *no* parameters (i.e. simply `./intepreter`).
It will tell you how it wants to be run.
(Actually not quite true -- it doesn't tell you that you can run `./interpreter -`,
i.e. use a minus sign for an input file name. If you do that, the intepreter reads
its input from stdin. Useful for piping input to the program. Confusing when used
in the terminal interactively, because output is delayed until you least expect it).
Contents (Manifest)
You should find here:
* `interpreter.cpp`
The interpreter, all in one file. Bad style perhaps, but there it is!
* `Makefile`
Used to run make (obviously?).
* `testInput.txt` and `testOutput.txt`
If you run `.interpreter testInput.txt` and get other output than
what you find in `testOutput.txt`, then something is wrong.
This is exactly what `make test` does.
* ``
This file.
Ronald Moore
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment