Class IRBlockGenerator

java.lang.Object
org.ek9lang.compiler.phase7.IRBlockGenerator

public final class IRBlockGenerator extends Object
Generates IR BasicBlock sequences from EK9 AST nodes.

Properly traverses the ANTLR AST and uses resolved symbols from ParsedModule to generate accurate IR instructions that reflect the actual EK9 source code.

  • Constructor Details

    • IRBlockGenerator

      public IRBlockGenerator(ParsedModule parsedModule)
  • Method Details

    • generateProgramBlock

      public BasicBlock generateProgramBlock(EK9Parser.InstructionBlockContext ctx)
      Generate IR for a program's instruction block. Properly traverses the AST to create BasicBlock with actual program statements.