tree-sitter-dust/corpus/statements.txt
2023-10-01 06:09:29 -04:00

80 lines
1.2 KiB
Plaintext

==================
Simple Statements
==================
1
"one"
x
---
(root
(item
(statement
(expression
(value
(integer)))))
(item
(statement
(expression
(value
(string)))))
(item
(statement
(expression
(identifier)))))
==================
Simple Assignment
==================
x = 1
y = "one"
---
(root
(item
(statement
(expression
(assignment
(identifier)
(statement
(expression
(value
(integer))))))))
(item
(statement
(expression
(assignment
(identifier)
(statement
(expression
(value
(string)))))))))
==================
Complex Assignment
==================
x = 1 + 1
---
(root
(item
(statement
(expression
(assignment
(identifier)
(statement
(expression
(math
(expression
(value
(integer)))
(math_operator)
(expression
(value
(integer)))))))))))