tree-sitter-dust/corpus/tests.txt

126 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-08-22 21:02:40 +00:00
==================
Comments
==================
# x = 1;
# unassigned_variable
x # xyz
---
(source_file
(comment)
(comment)
(expression
(identifier))
(comment))
2023-08-22 21:28:19 +00:00
==================
Identifiers
==================
variable_name
_unused_variable
__strange_format__
a
blahblah
x.x
---
(source_file
(expression
(identifier))
(expression
(identifier))
(expression
(identifier))
(expression
(identifier))
(expression
(identifier))
(expression
(identifier)))
==================
Operators
==================
2023-08-22 22:28:34 +00:00
x = y
x + y
x | y
x - y
x / y
x ; y
2023-08-22 21:28:19 +00:00
---
(source_file
(expression
2023-08-22 22:28:34 +00:00
(identifier)
2023-08-22 21:28:19 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(identifier))
(expression
(identifier)
2023-08-22 21:28:19 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(identifier))
(expression
(identifier)
2023-08-22 21:28:19 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(identifier))
(expression
(identifier)
2023-08-22 21:28:19 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(identifier))
(expression
(identifier)
2023-08-22 21:28:19 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(identifier))
(expression
(identifier)
(operator)
(identifier)))
2023-08-22 21:28:19 +00:00
==================
2023-08-22 22:28:34 +00:00
String
2023-08-22 21:28:19 +00:00
==================
2023-08-22 22:28:34 +00:00
"string"
---
(source_file
(expression
(string)))
==================
Integer
==================
1
2023-08-22 21:28:19 +00:00
---
(source_file
(expression
(integer)))
2023-08-22 22:28:34 +00:00
==================
List
==================
(1, 2)
---
(source_file
(expression
(list
(expression
(integer))
(expression
(integer)))))
2023-08-22 21:28:19 +00:00