public interface BuildableProgram extends FactoryManaged, Program
BuildableProgram
is a Program
that also provides methods
needed to build up the program code during the BASIC source code analysis.Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command command)
Add a new command to the list of commands.
|
void |
postprocess()
Calling this method signals that all the commands are added to the
program.
|
void |
reset()
Calling this method will remove all previously built code from the
program.
|
setFactory
getCommands, getNamedCommand, getNamedCommandNames, getStartCommand
void reset()
BuildableProgram
object is used to execute different programs,
one after the other.
Without calling this method the program would be concatenated and the second execution would contain the program codes of the first program and after that the second.
void addCommand(Command command)
command
- void postprocess() throws AnalysisException
AnalysisException
- when the postprocessing discovers syntax errorsCopyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.