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

public class TopLevelCompiler extends Object
Compiles top level funs.
  • Constructor Details

    • TopLevelCompiler

      public TopLevelCompiler(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

    • compile

      public JavaClassIr compile(Itree topLevel)
      Compiles a top level fun.
      Parameters:
      topLevel - the itree of the top level of the program.
      Returns:
      the compile jcir.