Skip to content

Commit

Permalink
Remove iteration clause from LOOP body code
Browse files Browse the repository at this point in the history
  • Loading branch information
paulapatience authored and Shinmera committed May 16, 2024
1 parent b7b50fd commit a7c2049
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions parser.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@

(defun consume-whitespace ()
(loop until (end-of-tokens-p)
for char = (peek)
do (if (or (char= char #\Space)
(char= char #\Linefeed)
(char= char #\Return))
(advance)
(return))))
do (let ((char (peek)))
(if (or (char= char #\Space)
(char= char #\Linefeed)
(char= char #\Return))
(advance)
(return)))))

(defun consume-string (string)
(let ((start *token-index*))
Expand Down

0 comments on commit a7c2049

Please sign in to comment.