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 nt
p p
#f #f
(for/first ([gs (in-vector p (sub1 (vector-length p)) -1 -1)] (let loop ([i (sub1 (vector-length p))])
#:when (term? gs)) (and (>= i 0)
(term-prec gs)) (let ([gs (vector-ref p i)])
(if (term? gs)
(term-prec gs)
(loop (sub1 i))))))
(parse-action #'PROD-RHS #'ACTION)))] (parse-action #'PROD-RHS #'ACTION)))]
[(PROD-RHS (PREC TERM) ACTION) [(PROD-RHS (PREC TERM) ACTION)
(identifier? #'TERM) (identifier? #'TERM)

Loading…
Cancel
Save