Module Simula

Class Statement

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

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
  • Constructor Details

    • Statement

      protected Statement(int line)
      Create a new Statement.
      Parameters:
      line - the source line number
  • Method Details

    • expectStatement

      public static Statement expectStatement()
      Parse a statement.
      Returns:
      the statement
    • expectUnlabeledStatement

      private static 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 class SyntaxClass