summaryrefslogtreecommitdiff
path: root/src/Builtins.kt
blob: 21da2185ae5334c13e4f24240d3370584ad62c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package moe.nea.lisp

object Builtins {

    private fun builtin(name: String) =
        LispParser.parse(
            "$name.lisp",
            Builtins::class.java.getResourceAsStream("/$name.lisp")!!.bufferedReader().readText()
        )

    val builtinProgram = builtin("builtins")
    val testProgram = builtin("stdtest")
}