*** empty log message ***

original commit: 58b8b709a19550201a6e297b771fc5c52ca9a87f
tokens
Scott Owens 23 years ago
parent facf53edf8
commit a617a3f620

@ -136,10 +136,15 @@
(cond
((null? rest) current-guess)
((shift? (car rest)) (car rest))
((< (reduce-prod-num (car rest))
(reduce-prod-num current-guess))
((and (reduce? (car rest))
(< (reduce-prod-num (car rest))
(reduce-prod-num current-guess)))
(loop (car rest) (cdr rest)))
(else (loop current-guess (cdr rest))))))
((accept? (car rest))
(fprintf (current-error-port)
"accept/reduce or accept/shift conflicts. Check the grammar for useless cycles of productions~n"))
(loop current-guess (cdr rest))
(else (loop current-guess (cdr rest))))))
(else entry)))))
(send a for-each-state
(lambda (state)

Loading…
Cancel
Save