1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package moe.nea.lisp class LispErrorReporter { data class LispError(val name: String, val position: LispPosition) val errors = listOf<LispError>() fun reportError(name: String, position: HasLispPosition) { println("LISP ERROR: $name at ${position.position}") } }