Package components.program
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 components.program.Program
Program.Instruction -
Field Summary
Fields inherited from interface components.program.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface components.program.ProgramKernel
name, newBody, newContext, setName, swapBody, swapContextMethods inherited from interface components.standard.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
Description copied from interface:ProgramParses a BL program fromtokensintothis. -
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
-