tree-sitter-dust/corpus/tests.txt

153 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-08-22 21:02:40 +00:00
==================
Comments
==================
# x = 1;
# unassigned_variable
2023-09-22 10:38:25 +00:00
#xyz
2023-08-22 21:02:40 +00:00
---
2023-09-22 10:38:25 +00:00
(source
2023-08-22 21:02:40 +00:00
(comment)
(comment)
(comment))
2023-08-22 21:28:19 +00:00
==================
Identifiers
==================
variable_name
_unused_variable
__strange_format__
a
blahblah
x.x
---
2023-09-22 10:38:25 +00:00
(source
(identifier)
(identifier)
(identifier)
(identifier)
(identifier)
(identifier))
2023-08-22 21:28:19 +00:00
==================
Operators
==================
2023-08-24 13:31:26 +00:00
x = y + y;
2023-08-22 21:28:19 +00:00
---
2023-09-22 10:38:25 +00:00
(source
(identifier)
(operator)
(identifier)
(operator)
(identifier)
(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"
2023-09-22 10:38:25 +00:00
'string'
2023-08-22 22:28:34 +00:00
---
2023-09-22 10:38:25 +00:00
(source
(value
(string))
(value
(string)))
2023-08-22 22:28:34 +00:00
==================
Integer
==================
1
2023-09-22 10:38:25 +00:00
123
2023-08-22 21:28:19 +00:00
---
2023-09-22 10:38:25 +00:00
(source
(value
(integer))
(value
(integer)))
2023-08-22 21:28:19 +00:00
2023-08-24 13:31:26 +00:00
==================
Float
==================
1.0
2023-09-22 10:38:25 +00:00
123.123
2023-08-24 13:31:26 +00:00
---
2023-09-22 10:38:25 +00:00
(source
(value
(float))
(value
(float)))
2023-08-24 13:31:26 +00:00
2023-08-22 22:28:34 +00:00
==================
List
==================
(1, 2)
---
2023-09-22 10:38:25 +00:00
(source
(value
(list
(value
(integer))
(value
(integer)))))
2023-08-22 22:28:34 +00:00
2023-08-24 13:31:26 +00:00
==================
Empty
==================
()
---
2023-09-22 10:38:25 +00:00
(source
(value
(empty)))
2023-08-24 13:31:26 +00:00
==================
Tool
==================
random_boolean();
---
2023-09-22 10:38:25 +00:00
(source
(tool)
(value
(empty))
(operator))
2023-08-22 22:28:34 +00:00
2023-08-24 16:53:42 +00:00
==================
Boolean
==================
true false
---
2023-08-22 21:28:19 +00:00
2023-09-22 10:38:25 +00:00
(source
(value
(boolean))
(value
(boolean)))