Revert "Replace a let loop with a for loop"

This reverts commit 8ab74df2fa.
remotes/jackfirth/master
Jack Firth 2 years ago
parent 8ab74df2fa
commit 412f3792c3

@ -217,9 +217,12 @@
nt
p
#f
(for/first ([gs (in-vector p (sub1 (vector-length p)) -1 -1)]
#:when (term? gs))
(term-prec gs))
(let loop ([i (sub1 (vector-length p))])
(and (>= i 0)
(let ([gs (vector-ref p i)])
(if (term? gs)
(term-prec gs)
(loop (sub1 i))))))
(parse-action #'PROD-RHS #'ACTION)))]
[(PROD-RHS (PREC TERM) ACTION)
(identifier? #'TERM)

Loading…
Cancel
Save