2023-10-18 21:52:56 +00:00
|
|
|
==================
|
|
|
|
While Loop
|
|
|
|
==================
|
|
|
|
|
|
|
|
while true {
|
|
|
|
(output "This is a bad idea...")
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(while
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean)))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
2023-10-21 17:19:01 +00:00
|
|
|
(tool
|
2023-10-18 21:52:56 +00:00
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))))))))))
|
|
|
|
|
|
|
|
==================
|
|
|
|
While Loop Assignment
|
|
|
|
==================
|
|
|
|
|
|
|
|
answer = while false {
|
|
|
|
42
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(while
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean)))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))))
|