(defconst lr-max-stack-size 500)
-(defun lr-push (stack sp new-cat goto-table lval)
+(defsubst lr-push (stack sp new-cat goto-table lval)
(let* ((state (aref stack sp))
(new-state (cdr (assq new-cat (aref goto-table state))))
(new-sp (+ sp 2)))
;; Reduce by rule (- act)
(t
- (setq sp (funcall (aref reduction-table (- act)) stack sp goto-table)))))))))
+ (setq sp (funcall (aref reduction-table (- act)) stack sp goto-table (cdr input))))))))))