64 lines
1.1 KiB
Plaintext
64 lines
1.1 KiB
Plaintext
==================
|
|
Simple Map
|
|
==================
|
|
|
|
{ answer = 42 }
|
|
|
|
---
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(integer))))))))
|
|
|
|
==================
|
|
Nested Maps
|
|
==================
|
|
|
|
x = {
|
|
y = {
|
|
foo = 'bar'
|
|
z = {
|
|
message = 'hiya'
|
|
}
|
|
}
|
|
f = 12
|
|
}
|
|
|
|
---
|
|
|
|
(root
|
|
(statement
|
|
(assignment
|
|
(identifier)
|
|
(assignment_operator)
|
|
(statement
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(string)))))))))
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(integer))))))))))
|