tree-sitter-dust/corpus/while.txt

52 lines
852 B
Plaintext
Raw Normal View History

2023-10-07 02:45:27 +00:00
==================
While Loop
==================
while true {
2023-10-10 19:50:57 +00:00
(output "This is a bad idea...")
2023-10-07 02:45:27 +00:00
}
---
(root
(item
(statement
(while
(expression
(value
(boolean)))
2023-10-07 02:51:04 +00:00
(item
(statement
(expression
2023-10-09 18:39:47 +00:00
(function_call
(tool)
(expression
(value
(string)))))))))))
2023-10-07 02:45:27 +00:00
==================
2023-10-09 18:39:47 +00:00
While Loop Assignment
2023-10-07 02:45:27 +00:00
==================
2023-10-09 18:39:47 +00:00
answer = while false {
2023-10-07 02:45:27 +00:00
42
}
---
(root
(item
(statement
(assignment
(identifier)
2023-10-09 18:39:47 +00:00
(assignment_operator)
2023-10-07 02:45:27 +00:00
(statement
(while
(expression
(value
(boolean)))
2023-10-07 02:51:04 +00:00
(item
(statement
(expression
(value
(integer)))))))))))