tree-sitter-dust/corpus/lists.txt
2023-10-01 01:13:29 -04:00

68 lines
1.1 KiB
Plaintext

==================
List Declaration
==================
['answer', 42]
---
(root
(item
(statement
(expression
(value
(list
(value
(string))
(value
(integer))))))))
==================
List Assignment
==================
foobar = ['answer', 42]
---
(root
(item
(statement
(expression
(assignment
(identifier)
(expression
(value
(list
(value
(string))
(value
(integer))))))))))
==================
List Nesting
==================
foobar = ['answers', [42, [666]]]
---
(root
(item
(statement
(expression
(assignment
(identifier)
(expression
(value
(list
(value
(string))
(value
(list
(value
(integer))
(value
(list
(value
(integer))))))))))))))