Class StmtInstrGenerator

java.lang.Object
org.ek9lang.compiler.phase7.StmtInstrGenerator
All Implemented Interfaces:
BiFunction<EK9Parser.StatementContext,String,List<IRInstr>>

final class StmtInstrGenerator extends Object implements BiFunction<EK9Parser.StatementContext,String,List<IRInstr>>
Creates IR instructions for statements. Generates new BasicBlock IR (IRInstructions).

From the ANTLR grammar this has to support the following:

   statement
     : ifStatement
     | assertStatement
     | assignmentStatement
     | identifierReference op=(INC | DEC)
     | call
     | throwStatement
     | objectAccessExpression
     | switchStatementExpression
     | tryStatementExpression
     | whileStatementExpression
     | forStatementExpression
     | streamStatement
     ;