2023-09-29 21:19:23 +00:00
|
|
|
==================
|
|
|
|
List Declaration
|
|
|
|
==================
|
|
|
|
|
|
|
|
['answer', 42]
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(value
|
|
|
|
(string))
|
|
|
|
(value
|
|
|
|
(integer))))))))
|
2023-09-29 21:19:23 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
List Assignment
|
|
|
|
==================
|
|
|
|
|
|
|
|
foobar = ['answer', 42]
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
2023-10-01 10:09:29 +00:00
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
2023-10-01 10:09:29 +00:00
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(value
|
|
|
|
(string))
|
|
|
|
(value
|
|
|
|
(integer)))))))))))
|
2023-09-29 21:19:23 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
List Nesting
|
|
|
|
==================
|
|
|
|
|
2023-10-01 10:09:29 +00:00
|
|
|
['answers', [42, [666]]]
|
2023-09-29 21:19:23 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
2023-10-01 10:09:29 +00:00
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(value
|
|
|
|
(string))
|
2023-10-01 05:13:29 +00:00
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(value
|
2023-10-01 10:09:29 +00:00
|
|
|
(integer))
|
2023-10-01 05:13:29 +00:00
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(value
|
2023-10-01 10:09:29 +00:00
|
|
|
(integer))))))))))))
|