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
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Generates and returns the sequence of virtual machine instructions ( "byte codes") corresponding tothis
.int
hashCode()
void
Parses a BL program fromtokens
intothis
.void
parse
(SimpleReader in) Parses a BL program fromin
intothis
.void
prettyPrint
(SimpleWriter out) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface components.program.ProgramKernel
name, newBody, newContext, setName, swapBody, swapContext
Methods 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:
prettyPrint
in interfaceProgram
- Parameters:
out
- the output stream
-
parse
Description copied from interface:Program
Parses a BL program fromin
intothis
. -
parse
Description copied from interface:Program
Parses a BL program fromtokens
intothis
. -
generatedCode
Description copied from interface:Program
Generates and returns the sequence of virtual machine instructions ( "byte codes") corresponding tothis
.- Specified by:
generatedCode
in interfaceProgram
- Returns:
- the compiled program
-