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)
|
2023-10-09 18:39:47 +00:00
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))
|
2023-09-29 19:25:10 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
Map Assignment
|
|
|
|
==================
|
|
|
|
|
2023-10-06 12:16:34 +00:00
|
|
|
x = {
|
2023-09-29 19:25:10 +00:00
|
|
|
answer = 42
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-06 12:16:34 +00:00
|
|
|
(assignment
|
|
|
|
(identifier)
|
2023-10-09 18:39:47 +00:00
|
|
|
(assignment_operator)
|
2023-10-06 12:16:34 +00:00
|
|
|
(statement
|
|
|
|
(expression
|
2023-10-05 12:42:52 +00:00
|
|
|
(value
|
2023-10-06 12:16:34 +00:00
|
|
|
(map
|
|
|
|
(identifier)
|
2023-10-09 18:39:47 +00:00
|
|
|
(expression
|
|
|
|
(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)))))
|