implement read empty map
This commit is contained in:
parent
4ed27b8c0e
commit
f816fdc912
@ -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) {
|
func readMap(s string, pos int, ns string) (any, any, int) {
|
||||||
m := hash_map.New()
|
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) {
|
func readList(s string, pos int, ns string) (any, any, int) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user