Class ItreeCompiler

java.lang.Object
org.kink_lang.kink.internal.compile.ItreeCompiler

public class ItreeCompiler extends Object
Compiles itree to FunVal by runtime bytecode generation.
  • Constructor Details

    • ItreeCompiler

      public ItreeCompiler(Vm vm, MethodHandles.Lookup packageLookup, String programName, String programText, BindingVal binding)
      Constructs a compiler.
      Parameters:
      vm - the vm.
      packageLookup - lookup of org.kink_lang.kink package.
      programName - the name of the program.
      programText - the text of the program.
      binding - the binding of the top level fun.
  • Method Details

    • compile

      public FunVal compile(Itree topLevel)
      Returns a generated toplevel fun.
      Parameters:
      topLevel - the top of the top level of the program.
      Returns:
      a generated toplevel fun.