tree-sitter-dust/corpus/control_flow.txt

55 lines
982 B
Plaintext
Raw Normal View History

2023-09-29 07:52:21 +00:00
==================
If/Then
==================
if true then "True";
---
2023-09-29 13:53:53 +00:00
(root
(item
(statement
(closed_statement
(expression
(control_flow
(expression
(value
(boolean)))
(statement
(open_statement
(expression
(value
(string)))))))
(close)))))
2023-09-29 07:52:21 +00:00
==================
If/Then Assignment
==================
x = if true then 1;
---
2023-09-29 13:53:53 +00:00
(root
(item
(statement
(closed_statement
(expression
(operation
(expression
(identifier))
(operator)
(expression
(control_flow
(expression
(value
(boolean)))
(statement
(open_statement
(expression
(value
(integer)))))))))
(close)))))