Class BasicBlockInstrGenerator
java.lang.Object
org.ek9lang.compiler.phase7.BasicBlockInstrGenerator
- All Implemented Interfaces:
Function<EK9Parser.InstructionBlockContext,
BasicBlockInstr>
final class BasicBlockInstrGenerator
extends Object
implements Function<EK9Parser.InstructionBlockContext,BasicBlockInstr>
Creates BasicBlock IR from EK9 instruction block contexts.
Follows the Creator pattern used throughout the EK9 compiler phase7 package.
For the following ANTLR grammar.
instructionBlock : (directive? blockStatement NL+)+ ;
-
Constructor Details
-
BasicBlockInstrGenerator
BasicBlockInstrGenerator(IRContext context)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.InstructionBlockContext,
BasicBlockInstr>
-