tree-sitter-dust/corpus/tests.txt

145 lines
1.4 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-24 13:31:26 +00:00
x = y + y;
2023-08-22 21:28:19 +00:00
---
(source_file
(expression
2023-08-22 22:28:34 +00:00
(identifier))
2023-08-24 13:31:26 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(expression
(identifier))
2023-08-24 13:31:26 +00:00
(operator)
2023-08-22 22:28:34 +00:00
(expression
(identifier))
2023-08-24 13:31:26 +00:00
(operator))
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-24 13:31:26 +00:00
==================
Float
==================
1.0
---
(source_file
(expression
(float)))
2023-08-22 22:28:34 +00:00
==================
List
==================
(1, 2)
---
(source_file
(expression
(list
(expression
(integer))
(expression
(integer)))))
2023-08-24 13:31:26 +00:00
==================
Empty
==================
()
---
(source_file
(expression
(empty)))
==================
Tool
==================
random_boolean();
---
(source_file
(expression
(tool))
(expression
(empty))
(operator))
2023-08-22 22:28:34 +00:00
2023-08-22 21:28:19 +00:00