2023-10-18 21:52:56 +00:00
|
|
|
==================
|
|
|
|
Simple Map
|
|
|
|
==================
|
|
|
|
|
|
|
|
{
|
|
|
|
answer = 42
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))
|
|
|
|
|
|
|
|
==================
|
|
|
|
Map Assignment
|
|
|
|
==================
|
|
|
|
|
|
|
|
x = {
|
|
|
|
answer = 42
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))))
|
|
|
|
|
|
|
|
==================
|
|
|
|
Map Access
|
|
|
|
==================
|
|
|
|
|
2023-10-29 23:31:06 +00:00
|
|
|
x.{answer}
|
2023-10-18 21:52:56 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
2023-10-29 23:31:06 +00:00
|
|
|
(index
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(expression
|
|
|
|
(identifier)))))))
|