Next: , Up: Imperative Language Interpreter   [Index]

5.1 Imperative Language Interpreter Usage Outline

The imperative language interpreter mechanics are much like those of the expression evaluator. Its programming interface mirrors the one of the expression evaluator.

See Crash Introduction.

To execute a program its executable representation must be build. Once done, the program may be executed for as many times as desired. Finally, when no longer needed the executable representation may be disposed of.

Simple imperative language interpreter usage is outlined in this section. To keep the example simple there will no state export from application to the executed program via variables (executed programs may access application state via variables, but in this examples the only variables the program may make use of are those declared by the program itself). There will be no functions or operators used other than those from the libaime default sets and some dumb output function set allowing for unsophisticated thrashing of standard output.