59 lines
765 B
Plaintext
59 lines
765 B
Plaintext
==================
|
|
Simple Map
|
|
==================
|
|
|
|
map {
|
|
answer = 42
|
|
}
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(value
|
|
(integer))))))))
|
|
|
|
==================
|
|
Map Assignment
|
|
==================
|
|
|
|
x = map {
|
|
answer = 42
|
|
}
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(assignment
|
|
(identifier)
|
|
(statement
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(value
|
|
(integer)))))))))))
|
|
|
|
==================
|
|
Map Access
|
|
==================
|
|
|
|
x.answer
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(identifier)))))
|
|
|