Class ProgramSecondary
java.lang.Object
components.program.ProgramSecondary
- All Implemented Interfaces:
Program, ProgramKernel, Standard<Program>
- Direct Known Subclasses:
Program1
Layered implementations of secondary methods for
Program.-
Nested Class Summary
Nested classes/interfaces inherited from interface Program
Program.Instruction -
Field Summary
Fields inherited from interface Program
INDENT_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanGenerates and returns the sequence of virtual machine instructions ( "byte codes") corresponding tothis.inthashCode()voidParses a BL program fromtokensintothis.voidparse(SimpleReader in) Parses a BL program frominintothis.voidprettyPrint(SimpleWriter out) toString()Methods inherited from interface ProgramKernel
name, newBody, newContext, setName, swapBody, swapContextMethods inherited from interface Standard
clear, newInstance, transferFrom
-
Constructor Details
-
ProgramSecondary
public ProgramSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
prettyPrint
Description copied from interface:Program- Specified by:
prettyPrintin interfaceProgram- Parameters:
out- the output stream
-
parse
Description copied from interface:ProgramParses a BL program frominintothis. -
parse
-
generatedCode
Description copied from interface:ProgramGenerates and returns the sequence of virtual machine instructions ( "byte codes") corresponding tothis.- Specified by:
generatedCodein interfaceProgram- Returns:
- the compiled program
-