tree-sitter-dust/corpus/lists.txt

90 lines
1.4 KiB
Plaintext
Raw Normal View History

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-06 02:05:18 +00:00
(assignment
(identifier)
(expression
(value
(list
(value
(string))
2023-10-01 10:09:29 +00:00
(value
2023-10-06 02:05:18 +00:00
(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))))))))))))
2023-10-06 02:05:18 +00:00
==================
Optional Commas
==================
['answers' [42 [666]]]
---
(root
(item
(statement
(expression
(value
(list
(value
(string))
(value
(list
(value
(integer))
(value
(list
(value
(integer))))))))))))