tree-sitter-dust/corpus/lists.txt

90 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)
(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))))))))))))