2023-11-04 01:16:55 +00:00
|
|
|
================================================================================
|
2023-10-18 21:52:56 +00:00
|
|
|
Simple Map
|
2023-11-04 01:16:55 +00:00
|
|
|
================================================================================
|
2023-10-18 21:52:56 +00:00
|
|
|
|
2023-11-04 01:16:55 +00:00
|
|
|
map { answer = 42 }
|
2023-10-18 21:52:56 +00:00
|
|
|
|
2023-11-04 01:16:55 +00:00
|
|
|
--------------------------------------------------------------------------------
|
2023-10-18 21:52:56 +00:00
|
|
|
|
|
|
|
(root
|
2023-10-31 13:31:10 +00:00
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
2023-11-04 01:16:55 +00:00
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))))))
|
2023-10-18 21:52:56 +00:00
|
|
|
|
2023-11-04 01:16:55 +00:00
|
|
|
================================================================================
|
2023-10-31 09:51:37 +00:00
|
|
|
Nested Maps
|
2023-11-04 01:16:55 +00:00
|
|
|
================================================================================
|
2023-10-18 21:52:56 +00:00
|
|
|
|
2023-11-04 01:16:55 +00:00
|
|
|
x = map {
|
|
|
|
y = map {
|
2023-10-31 09:51:37 +00:00
|
|
|
foo = 'bar'
|
2023-11-04 01:16:55 +00:00
|
|
|
z = map {
|
2023-10-31 09:51:37 +00:00
|
|
|
message = 'hiya'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
f = 12
|
2023-10-18 21:52:56 +00:00
|
|
|
}
|
|
|
|
|
2023-11-04 01:16:55 +00:00
|
|
|
--------------------------------------------------------------------------------
|
2023-10-18 21:52:56 +00:00
|
|
|
|
|
|
|
(root
|
2023-10-31 13:31:10 +00:00
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
2023-11-04 01:16:55 +00:00
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
|
|
|
(block
|
2023-10-31 17:04:22 +00:00
|
|
|
(statement
|
2023-11-04 01:16:55 +00:00
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string))))))
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(map
|
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string))))))))))))))))))))
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))))))))
|