blob: fa9046829c6b012297c0c4777c6ff3d43088bed7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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()
executionContext.setupStandardBindings()
executionContext.registerModule(
"secondary",
LispParser.parse(File(T::class.java.getResource("/secondary.lisp")!!.file))
)
val bindings = executionContext.genBindings()
println("The results are in: ${executionContext.runTests(otherP, bindings)}")
}
|