2023-09-29 19:25:10 +00:00
|
|
|
==================
|
2023-10-01 05:13:29 +00:00
|
|
|
Simple Map
|
2023-09-29 19:25:10 +00:00
|
|
|
==================
|
|
|
|
|
2023-10-05 12:42:52 +00:00
|
|
|
{
|
2023-09-29 19:25:10 +00:00
|
|
|
answer = 42
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
|
|
|
(identifier)
|
|
|
|
(value
|
|
|
|
(integer))))))))
|
2023-09-29 19:25:10 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
Map Assignment
|
|
|
|
==================
|
|
|
|
|
2023-10-05 12:42:52 +00:00
|
|
|
{
|
2023-09-29 19:25:10 +00:00
|
|
|
answer = 42
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
2023-10-05 12:42:52 +00:00
|
|
|
(value
|
|
|
|
(map
|
|
|
|
(identifier)
|
|
|
|
(value
|
|
|
|
(integer))))))))
|
2023-09-29 19:25:10 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
Map Access
|
|
|
|
==================
|
|
|
|
|
|
|
|
x.answer
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
2023-10-01 05:13:29 +00:00
|
|
|
(item
|
|
|
|
(statement
|
2023-09-29 19:25:10 +00:00
|
|
|
(expression
|
2023-10-01 05:13:29 +00:00
|
|
|
(identifier)))))
|
|
|
|
|