Building Parsers with Java

Package sjm.imperative

Class Summary
AssignmentCommand This class holds an sjm.engine.Evaluation object, and executes it upon receiving an execute command.
Command This abstract class represents a hierarchy of classes that encapsulate commands.
CommandSequence This class contains a sequence of other commands.
ForCommand This command mimics a normal "for" loop, such as:
IfCommand This command mimics a normal "if" statement, such as:
NullCommand This command does nothing, which can simplify coding in some cases.
PrintlnCommand This command, when executed, prints out the value of a term provided in the constructor.
ReadCommand This command, when executed, reads in a string and assigns it to a supplied variable.
WhileCommand This command mimics a normal "while" loop, executing a command in a loop, so long as some condition holds true.
 


by Steve Metsker