================================================================================
While loop without a body
================================================================================

while foo
endw

--------------------------------------------------------------------------------

(script_file
  (while_loop
    condition: (identifier)))

================================================================================
While loop with a body
================================================================================

while foo
  Bar
  Baz
endwhile

--------------------------------------------------------------------------------

(script_file
  (while_loop
    condition: (identifier)
    (body
      (user_command
        (command_name))
      (user_command
        (command_name)))))

================================================================================
Confusing while loop with range
================================================================================

while a < b
  +
  let line = q
endwhile

--------------------------------------------------------------------------------

(script_file
  (while_loop
    (binary_operation
      (identifier)
      (identifier))
    (body
      (range_statement
        (next_line))
      (let_statement
        (identifier)
        (identifier)))))

================================================================================
While loop with continue statement
================================================================================

while 0
  continue
endwhile

--------------------------------------------------------------------------------

(script_file
  (while_loop
    condition: (integer_literal)
    (body
      (continue_statement))))

================================================================================
While loop with break
================================================================================

while 1
  break
endwhile

--------------------------------------------------------------------------------

(script_file
  (while_loop
    condition: (integer_literal)
    (body
      (break_statement))))
