Class BlockStmtInstrGenerator

java.lang.Object
org.ek9lang.compiler.phase7.generator.AbstractGenerator
org.ek9lang.compiler.phase7.generator.BlockStmtInstrGenerator
All Implemented Interfaces:
Function<EK9Parser.BlockStatementContext,List<IRInstr>>

final class BlockStmtInstrGenerator extends AbstractGenerator implements Function<EK9Parser.BlockStatementContext,List<IRInstr>>
Creates IR instructions for block statements. Handles variable declarations, variable only declarations, and statements.

Deals with the following ANTLR grammar.

   blockStatement
     : variableDeclaration
     | variableOnlyDeclaration
     | statement
     ;