tree-sitter-dust/corpus/statements.txt
2023-09-27 19:10:21 -04:00

72 lines
773 B
Plaintext

==================
Simple Statements
==================
1;
"one";
x;
---
(source
(statement
(expression
(value
(integer)))
(close))
(statement
(expression
(value
(string)))
(close))
(statement
(expression
(identifier))
(close)))
==================
Simple Assignment
==================
x = 1;
y = "one";
---
(source
(statement
(expression
(identifier)
(operator)
(value
(integer)))
(close))
(statement
(expression
(identifier)
(operator)
(value
(string)))
(close)))
==================
Complex Assignment
==================
x = 1 + 1;
---
(source
(statement
(expression
(identifier)
(operator)
(expression
(value
(integer))
(operator)
(value
(integer))))
(close)))