All pastes #1906249 Raw Edit

katox

public text v1 · immutable
#1906249 ·published 2010-07-22 20:46 UTC
rendered paste body

  private Obj compileScript(Str scriptName)
  {
    file := File(scriptDir.uri + scriptName.toUri)
    Pod.of(this).log.debug(file.uri.toStr)
    input := CompilerInput
    {
      podName   = Uuid().toStr
      summary   = ""
      version   = Version("1.0")
      log.level = LogLevel.err
      isScript  = true
      srcStr    = file.readAllStr
      srcStrLoc = Loc.makeFile(file)
      mode      = CompilerInputMode.str
      output    = CompilerOutputMode.transientPod
    }
    compiler := Compiler(input)
    t := compiler.compile.transientPod.types[0]

    return t.make
  }