summaryrefslogtreecommitdiff
path: root/src/LispData.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-12 02:36:05 +0200
committernea <nea@nea.moe>2023-08-12 02:36:05 +0200
commitd1f49743a0a00a1156272d174e8b6b5c4bb9acec (patch)
tree72c8bee0dd7808463f218b2dd61ed1d1c036a8dd /src/LispData.kt
parent3ff093ebd46b32af8c9f1c73e2c147bbb1f1ef62 (diff)
downloadnealisp-d1f49743a0a00a1156272d174e8b6b5c4bb9acec.tar.gz
nealisp-d1f49743a0a00a1156272d174e8b6b5c4bb9acec.tar.bz2
nealisp-d1f49743a0a00a1156272d174e8b6b5c4bb9acec.zip
Add hash support
Diffstat (limited to 'src/LispData.kt')
-rw-r--r--src/LispData.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/LispData.kt b/src/LispData.kt
index 97fcc36..ea3af32 100644
--- a/src/LispData.kt
+++ b/src/LispData.kt
@@ -7,6 +7,7 @@ sealed class LispData {
data class LispString(val string: String) : 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()
class LispList(val elements: List<LispData>) : LispData()
sealed class LispExecutable() : LispData() {
abstract fun execute(