tree-sitter-dust/corpus/tests.txt
2023-09-22 06:38:25 -04:00

153 lines
1.3 KiB
Plaintext

==================
Comments
==================
# x = 1;
# unassigned_variable
#xyz
---
(source
(comment)
(comment)
(comment))
==================
Identifiers
==================
variable_name
_unused_variable
__strange_format__
a
blahblah
x.x
---
(source
(identifier)
(identifier)
(identifier)
(identifier)
(identifier)
(identifier))
==================
Operators
==================
x = y + y;
---
(source
(identifier)
(operator)
(identifier)
(operator)
(identifier)
(operator))
==================
String
==================
"string"
'string'
---
(source
(value
(string))
(value
(string)))
==================
Integer
==================
1
123
---
(source
(value
(integer))
(value
(integer)))
==================
Float
==================
1.0
123.123
---
(source
(value
(float))
(value
(float)))
==================
List
==================
(1, 2)
---
(source
(value
(list
(value
(integer))
(value
(integer)))))
==================
Empty
==================
()
---
(source
(value
(empty)))
==================
Tool
==================
random_boolean();
---
(source
(tool)
(value
(empty))
(operator))
==================
Boolean
==================
true false
---
(source
(value
(boolean))
(value
(boolean)))