java.lang.Object
simula.compiler.syntaxClass.SyntaxClass
simula.compiler.syntaxClass.statement.Statement
- Direct Known Subclasses:
ActivationStatement
,BlockStatement
,ConditionalStatement
,ConnectionStatement
,DummyStatement
,ForStatement
,GotoStatement
,InnerStatement
,LabeledStatement
,ProgramModule
,StandaloneExpression
,SwitchStatement
,WhileStatement
public abstract sealed class Statement
extends SyntaxClass
permits InnerStatement, ActivationStatement, BlockStatement, ConditionalStatement, ConnectionStatement, DummyStatement, ForStatement, GotoStatement, LabeledStatement, StandaloneExpression, SwitchStatement, WhileStatement, ProgramModule
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-statementLink to GitHub: Source File.
- Author:
- SIMULA Standards Group, Øystein Myhre Andersen
-
Field Summary
Fields inherited from class simula.compiler.syntaxClass.SyntaxClass
lineNumber
-
Constructor Summary
-
Method Summary
Methods inherited from class simula.compiler.syntaxClass.SyntaxClass
ASSERT_SEMANTICS_CHECKED, doChecking, doDeclarationCoding, edIndent, edTreeIndent, IS_SEMANTICS_CHECKED, print, printTree, SET_SEMANTICS_CHECKED, toJavaCode
-
Constructor Details
-
Statement
protected Statement(int line) Create a new Statement.- Parameters:
line
- the source line number
-
-
Method Details
-
expectStatement
Parse a statement.- Returns:
- the statement
-
expectUnlabeledStatement
Parse Utility: Expect a statement.- Returns:
- the resulting statement
-
doJavaCoding
public void doJavaCoding()Description copied from class:SyntaxClass
Output Java code.- Overrides:
doJavaCoding
in classSyntaxClass
-