Class Statement
java.lang.Object
simula.compiler.syntaxClass.SyntaxClass
simula.compiler.syntaxClass.statement.Statement
- Direct Known Subclasses:
ActivationStatement
,BlockStatement
,ConditionalStatement
,ConnectionStatement
,DummyStatement
,ForStatement
,GotoStatement
,InlineStatement
,InnerStatement
,LabeledStatement
,ProgramModule
,StandaloneExpression
,SwitchStatement
,WhileStatement
Statement.
Simula Standard: Chapter 4: Statements Statement = { label : } unconditional-statement | { label : } conditional-statement | { label : } for-statement Unconditional-statement = assignment-statement NOTE: Treated as a binary operation | while-statement | goto-statement | procedure-statement | object-generator | connection-statement | compound-statement | block | dummy-statement | activation-statement
Link to GitHub: Source File.
- Author:
- SIMULA Standards Group, Øystein Myhre Andersen
-
Field Summary
Fields inherited from class simula.compiler.syntaxClass.SyntaxClass
CHECKED, lineNumber, OBJECT_SEQU
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildByteCode
(CodeBuilder codeBuilder) Build Java ByteCode.void
Output Java code.static Statement
Parse a statement.private static Statement
Parse Utility: Expect an unlabeled statement.Methods inherited from class simula.compiler.syntaxClass.SyntaxClass
ASSERT_SEMANTICS_CHECKED, doChecking, doDeclarationCoding, edIndent, edTreeIndent, IS_SEMANTICS_CHECKED, print, printTree, readObject, SET_SEMANTICS_CHECKED, setLineNumber, toJavaCode, writeObject
-
Constructor Details
-
Statement
protected Statement(int line) Create a new Statement.- Parameters:
line
- the source line number
-
-
Method Details
-
expectStatement
-
expectUnlabeledStatement
Parse Utility: Expect an unlabeled statement.- Returns:
- the resulting statement
-
doJavaCoding
public void doJavaCoding()Description copied from class:SyntaxClass
Output Java code.- Overrides:
doJavaCoding
in classSyntaxClass
-
buildByteCode
Build Java ByteCode.- Overrides:
buildByteCode
in classSyntaxClass
- Parameters:
codeBuilder
- the codeBuilder to use.
-