tree-sitter-dust/corpus/tests.txt
2023-08-22 18:28:34 -04:00

126 lines
1.3 KiB
Plaintext

==================
Comments
==================
# x = 1;
# unassigned_variable
x # xyz
---
(source_file
(comment)
(comment)
(expression
(identifier))
(comment))
==================
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
==================
x = y
x + y
x | y
x - y
x / y
x ; y
---
(source_file
(expression
(identifier)
(operator)
(identifier))
(expression
(identifier)
(operator)
(identifier))
(expression
(identifier)
(operator)
(identifier))
(expression
(identifier)
(operator)
(identifier))
(expression
(identifier)
(operator)
(identifier))
(expression
(identifier)
(operator)
(identifier)))
==================
String
==================
"string"
---
(source_file
(expression
(string)))
==================
Integer
==================
1
---
(source_file
(expression
(integer)))
==================
List
==================
(1, 2)
---
(source_file
(expression
(list
(expression
(integer))
(expression
(integer)))))