tree-sitter-dust/corpus/control_flow.txt

47 lines
768 B
Plaintext
Raw Normal View History

2023-09-29 07:52:21 +00:00
==================
If/Then
==================
2023-09-29 17:04:19 +00:00
if true then "True"
2023-09-29 07:52:21 +00:00
---
2023-09-29 13:53:53 +00:00
(root
(item
(statement
2023-10-01 05:13:29 +00:00
(expression
(control_flow
(expression
(value
(boolean)))
(statement
2023-09-29 13:53:53 +00:00
(expression
(value
2023-10-01 05:13:29 +00:00
(string)))))))))
2023-09-29 13:53:53 +00:00
2023-09-29 07:52:21 +00:00
==================
If/Then Assignment
==================
2023-09-29 17:04:19 +00:00
x = if true then 1
2023-09-29 07:52:21 +00:00
---
2023-09-29 13:53:53 +00:00
(root
(item
(statement
2023-10-01 05:13:29 +00:00
(expression
(assignment
(identifier)
2023-10-01 10:09:29 +00:00
(statement
(expression
(control_flow
2023-09-29 13:53:53 +00:00
(expression
(value
2023-10-01 10:09:29 +00:00
(boolean)))
(statement
(expression
(value
(integer))))))))))))