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