diff options
author | nea <nea@nea.moe> | 2023-08-21 19:41:29 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-21 19:41:29 +0200 |
commit | 39f1849edcaa9005814525cd13f76a5daaa15ae0 (patch) | |
tree | 4d3a34f96f53443a92823079563a2c9bbdeba7e7 /src/LispData.kt | |
parent | ad9429d1cae70baf9b561090bb33ab2941d2a3a5 (diff) | |
download | nealisp-39f1849edcaa9005814525cd13f76a5daaa15ae0.tar.gz nealisp-39f1849edcaa9005814525cd13f76a5daaa15ae0.tar.bz2 nealisp-39f1849edcaa9005814525cd13f76a5daaa15ae0.zip |
Foreign objects
Diffstat (limited to 'src/LispData.kt')
-rw-r--r-- | src/LispData.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LispData.kt b/src/LispData.kt index ea3af32..61c2b76 100644 --- a/src/LispData.kt +++ b/src/LispData.kt @@ -8,6 +8,7 @@ sealed class LispData { data class LispNumber(val value: Double) : LispData() data class LispNode(val node: LispAst.LispNode) : LispData() data class LispHash(val map: Map<String, LispData>) : LispData() + data class ForeignObject<T : Any?>(val obj: T) : LispData() class LispList(val elements: List<LispData>) : LispData() sealed class LispExecutable() : LispData() { abstract fun execute( @@ -56,7 +57,6 @@ sealed class LispData { } } - companion object { fun externalRawCall( name: String, |