tree-sitter-dust/corpus/control_flow.txt
2023-09-29 09:53:53 -04:00

55 lines
982 B
Plaintext

==================
If/Then
==================
if true then "True";
---
(root
(item
(statement
(closed_statement
(expression
(control_flow
(expression
(value
(boolean)))
(statement
(open_statement
(expression
(value
(string)))))))
(close)))))
==================
If/Then Assignment
==================
x = if true then 1;
---
(root
(item
(statement
(closed_statement
(expression
(operation
(expression
(identifier))
(operator)
(expression
(control_flow
(expression
(value
(boolean)))
(statement
(open_statement
(expression
(value
(integer)))))))))
(close)))))