Class ValCaptureFastFunCompiler

java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.ValCaptureFastFunCompiler

public class ValCaptureFastFunCompiler extends Object
Compiles val-capture fast funs.
  • Constructor Details

    • ValCaptureFastFunCompiler

      public ValCaptureFastFunCompiler(Vm vm, String programName, String programText)
      Constructs a compiler.
      Parameters:
      vm - the vm.
      programName - the name of the program.
      programText - the text of the program.
  • Method Details

    • compileControlUnchanged

      public JavaClassIr compileControlUnchanged(FastFunItree fun)
      Copmiles an val-capture fast fun for the case that local vars of control funs are unchanged on the top level.
      Parameters:
      fun - the fun to compile.
      Returns:
      the compiled IR.
    • compileControlOverridden

      public JavaClassIr compileControlOverridden(FastFunItree fun)
      Copmiles an val-capture fast fun for the case that a local var of a control fun is overridden on the top level.
      Parameters:
      fun - the fun to compile.
      Returns:
      the compiled IR.