implement read empty map

This commit is contained in:
Adam Jeniski 2025-11-05 06:43:14 -10:00
parent 4ed27b8c0e
commit f816fdc912

View File

@ -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) {