tree-sitter-dust/corpus/statements.txt

89 lines
1.4 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-09-29 13:53:53 +00:00
(root
(item
(statement
2023-09-29 17:04:19 +00:00
(open_statement
2023-09-29 13:53:53 +00:00
(expression
(value
2023-09-29 17:04:19 +00:00
(integer))))))
2023-09-29 13:53:53 +00:00
(item
(statement
2023-09-29 17:04:19 +00:00
(open_statement
2023-09-29 13:53:53 +00:00
(expression
(value
2023-09-29 17:04:19 +00:00
(string))))))
2023-09-29 13:53:53 +00:00
(item
(statement
2023-09-29 17:04:19 +00:00
(open_statement
2023-09-29 13:53:53 +00:00
(expression
2023-09-29 17:04:19 +00:00
(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
(statement
2023-09-29 17:04:19 +00:00
(open_statement
2023-09-29 13:53:53 +00:00
(expression
(operation
(expression
(identifier))
(operator)
(expression
(value
2023-09-29 17:04:19 +00:00
(integer))))))))
2023-09-29 13:53:53 +00:00
(item
(statement
2023-09-29 17:04:19 +00:00
(open_statement
2023-09-29 13:53:53 +00:00
(expression
(operation
(expression
(identifier))
(operator)
(expression
(value
2023-09-29 17:04:19 +00:00
(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-09-29 17:04:19 +00:00
(open_statement
2023-09-29 13:53:53 +00:00
(expression
(operation
(expression
(operation
(expression
(identifier))
(operator)
(expression
(value
(integer)))))
(operator)
(expression
(value
2023-09-29 17:04:19 +00:00
(integer)))))))))