tree-sitter-dust/corpus/while.txt

52 lines
860 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)))
(statement
(expression
(tool_call
(output
(expression
(value
(string)))))))))))
==================
While Assignment
==================
foo = while true {
42
}
---
(root
(item
(statement
(assignment
(identifier)
(statement
(while
(expression
(value
(boolean)))
(statement
(expression
(tool_call
(output
(expression
(value
(string)))))))))))))