91 lines
1.4 KiB
Plaintext
91 lines
1.4 KiB
Plaintext
==================
|
|
List Declaration
|
|
==================
|
|
|
|
['answer', 42]
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(value
|
|
(list
|
|
(value
|
|
(string))
|
|
(value
|
|
(integer))))))))
|
|
|
|
==================
|
|
List Assignment
|
|
==================
|
|
|
|
foobar = ['answer', 42]
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(assignment
|
|
(identifier)
|
|
(statement
|
|
(expression
|
|
(value
|
|
(list
|
|
(value
|
|
(string))
|
|
(value
|
|
(integer))))))))))
|
|
|
|
==================
|
|
List Nesting
|
|
==================
|
|
|
|
['answers', [42, [666]]]
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(value
|
|
(list
|
|
(value
|
|
(string))
|
|
(value
|
|
(list
|
|
(value
|
|
(integer))
|
|
(value
|
|
(list
|
|
(value
|
|
(integer))))))))))))
|
|
|
|
==================
|
|
Optional Commas
|
|
==================
|
|
|
|
['answers' [42 [666]]]
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(value
|
|
(list
|
|
(value
|
|
(string))
|
|
(value
|
|
(list
|
|
(value
|
|
(integer))
|
|
(value
|
|
(list
|
|
(value
|
|
(integer))))))))))))
|