tree-sitter-dust/corpus/tests.txt
2023-08-24 09:31:26 -04:00

145 lines
1.4 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 + y;
---
(source_file
(expression
(identifier))
(operator)
(expression
(identifier))
(operator)
(expression
(identifier))
(operator))
==================
String
==================
"string"
---
(source_file
(expression
(string)))
==================
Integer
==================
1
---
(source_file
(expression
(integer)))
==================
Float
==================
1.0
---
(source_file
(expression
(float)))
==================
List
==================
(1, 2)
---
(source_file
(expression
(list
(expression
(integer))
(expression
(integer)))))
==================
Empty
==================
()
---
(source_file
(expression
(empty)))
==================
Tool
==================
random_boolean();
---
(source_file
(expression
(tool))
(expression
(empty))
(operator))