tree-sitter-dust/corpus/while.txt

51 lines
817 B
Plaintext
Raw Normal View History

2023-10-07 02:45:27 +00:00
==================
While Loop
==================
while true {
(output "This is a bad idea...")
}
---
(root
(item
(statement
(while
(expression
(value
(boolean)))
2023-10-07 02:51:04 +00:00
(item
(statement
(expression
(tool_call
(output
(expression
(value
(string))))))))))))
2023-10-07 02:45:27 +00:00
==================
While Assignment
==================
foo = while true {
42
}
---
(root
(item
(statement
(assignment
(identifier)
(statement
(while
(expression
(value
(boolean)))
2023-10-07 02:51:04 +00:00
(item
(statement
(expression
(value
(integer)))))))))))