52 lines
860 B
Plaintext
52 lines
860 B
Plaintext
|
==================
|
||
|
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)))))))))))))
|