tree-sitter-dust/corpus/lists.txt

73 lines
1.2 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
2023-10-09 18:39:47 +00:00
(expression
(value
(string)))
(expression
(value
(integer)))))))))
2023-09-29 21:19:23 +00:00
==================
List Assignment
==================
2023-10-09 18:39:47 +00:00
foobar = ['foobar']
2023-09-29 21:19:23 +00:00
---
(root
(item
2023-10-01 10:09:29 +00:00
(statement
2023-10-06 02:05:18 +00:00
(assignment
(identifier)
2023-10-09 18:39:47 +00:00
(assignment_operator)
2023-10-06 10:18:02 +00:00
(statement
(expression
(value
(list
2023-10-09 18:39:47 +00:00
(expression
(value
(string)))))))))))
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
2023-10-09 18:39:47 +00:00
(expression
(value
(string)))
(expression
(value
(list
(expression
2023-10-01 05:13:29 +00:00
(value
2023-10-09 18:39:47 +00:00
(integer)))
(expression
2023-10-06 02:05:18 +00:00
(value
2023-10-09 18:39:47 +00:00
(list
(expression
(value
(integer)))))))))))))))