blob: f986f1c4f99daee6b8a6cdff1c8bc10e40dbd9af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import moe.nea.lisp.CoreBindings
import moe.nea.lisp.LispExecutionContext
import moe.nea.lisp.LispParser
import java.io.File
object T
fun main() {
val otherP = LispParser.parse(File(T::class.java.getResource("/test.lisp")!!.file))
val executionContext = LispExecutionContext()
val bindings = executionContext.genBindings()
CoreBindings.offerAllTo(bindings)
executionContext.executeProgram(bindings, otherP)
}
|