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

47 lines
768 B
Plaintext

==================
If/Then
==================
if true then "True"
---
(root
(item
(statement
(expression
(control_flow
(expression
(value
(boolean)))
(statement
(expression
(value
(string)))))))))
==================
If/Then Assignment
==================
x = if true then 1
---
(root
(item
(statement
(expression
(assignment
(identifier)
(statement
(expression
(control_flow
(expression
(value
(boolean)))
(statement
(expression
(value
(integer))))))))))))