tree-sitter-dust/corpus/statements.txt

76 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-09-27 21:41:39 +00:00
==================
Simple Statements
==================
2023-09-29 17:04:19 +00:00
1
"one"
x
2023-09-27 21:41:39 +00:00
---
2023-10-01 04:01:02 +00:00
2023-09-29 13:53:53 +00:00
(root
(item
(statement
2023-10-01 04:01:02 +00:00
(expression
(value
(integer)))))
2023-09-29 13:53:53 +00:00
(item
(statement
2023-10-01 04:01:02 +00:00
(expression
(value
(string)))))
2023-09-29 13:53:53 +00:00
(item
(statement
2023-10-01 04:01:02 +00:00
(expression
(identifier)))))
2023-09-27 21:41:39 +00:00
==================
Simple Assignment
==================
2023-09-29 17:04:19 +00:00
x = 1
y = "one"
2023-09-27 21:41:39 +00:00
---
2023-09-29 13:53:53 +00:00
(root
(item
2023-10-01 04:01:02 +00:00
(statement
(expression
(assignment
(identifier)
(expression
(value
(integer)))))))
2023-09-29 13:53:53 +00:00
(item
2023-10-01 04:01:02 +00:00
(statement
(expression
(assignment
(identifier)
(expression
(value
(string))))))))
2023-09-27 23:10:21 +00:00
==================
Complex Assignment
==================
2023-09-29 17:04:19 +00:00
x = 1 + 1
2023-09-27 23:10:21 +00:00
---
2023-09-29 13:53:53 +00:00
(root
(item
(statement
2023-10-01 04:01:02 +00:00
(expression
(assignment
(identifier)
(expression
(math
(expression
(value
(integer)))
(math_operator)
(expression
(value
(integer))))))))))