1
0

70 lines
1.8 KiB
Plaintext
Raw Normal View History

2023-11-10 20:44:03 -05:00
================================================================================
Simple Map
2023-11-10 20:44:03 -05:00
================================================================================
2023-11-28 11:01:38 -05:00
{ answer = 42 }
2023-11-10 20:44:03 -05:00
--------------------------------------------------------------------------------
(root
2023-11-10 20:44:03 -05:00
(statement
(expression
(value
(map
2023-11-10 20:44:03 -05:00
(identifier)
(statement
(expression
(value
(integer)))))))))
2023-11-10 20:44:03 -05:00
================================================================================
2023-10-31 05:51:37 -04:00
Nested Maps
2023-11-10 20:44:03 -05:00
================================================================================
2023-11-28 11:01:38 -05:00
x = {
y = {
2023-10-31 05:51:37 -04:00
foo = 'bar'
2023-11-28 11:01:38 -05:00
z = {
2023-10-31 05:51:37 -04:00
message = 'hiya'
2023-11-28 11:01:38 -05:00
}
}
2023-10-31 05:51:37 -04:00
f = 12
2023-11-28 11:01:38 -05:00
}
2023-11-10 20:44:03 -05:00
--------------------------------------------------------------------------------
(root
2023-11-10 20:44:03 -05:00
(statement
(assignment
(identifier)
(assignment_operator)
(statement
(expression
(value
(map
2023-11-10 20:44:03 -05:00
(identifier)
(statement
(expression
(value
(map
(identifier)
(statement
(expression
(value
(string))))
(identifier)
(statement
(expression
(value
(map
(identifier)
(statement
(expression
(value
(string))))))))))))
2023-11-10 20:44:03 -05:00
(identifier)
(statement
(expression
(value
(integer)))))))))))