From f816fdc912e8cb0c2f191198b10b3b76cf20282f Mon Sep 17 00:00:00 2001 From: ajet Date: Wed, 5 Nov 2025 06:43:14 -1000 Subject: [PATCH] implement read empty map --- read/read.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/read/read.go b/read/read.go index a8add64..3d92ba7 100644 --- a/read/read.go +++ b/read/read.go @@ -57,7 +57,10 @@ func readForm(s string, pos int, ns string) (any, any, int) { func readMap(s string, pos int, ns string) (any, any, int) { m := hash_map.New() - return m, "unimplemented", pos + if s[pos+1] == '}' { + return m, nil, pos + 2 + } + return nil, "unimplemented", pos } func readList(s string, pos int, ns string) (any, any, int) {