tree-sitter-dust/corpus/statements.txt

76 lines
1.1 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)
(expression
(value
(integer)))))))
(item
(statement
(expression
(assignment
(identifier)
(expression
(value
(string))))))))
==================
Complex Assignment
==================
x = 1 + 1
---
(root
(item
(statement
(expression
(assignment
(identifier)
(expression
(math
(expression
(value
(integer)))
(math_operator)
(expression
(value
(integer))))))))))