Function: peg-postprocess

peg-postprocess is a byte-compiled function defined in peg.el.gz.

Signature

(peg-postprocess ACTIONS)

Documentation

Execute "actions".

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/peg.el.gz
(defun peg-postprocess (actions)
  "Execute \"actions\"."
  (let  ((peg--stack '())
         (forw-actions ()))
    (pcase-dolist (`(,pos . ,thunk) actions)
      (push (cons (copy-marker pos) thunk) forw-actions))
    (pcase-dolist (`(,pos . ,thunk) forw-actions)
      (goto-char pos)
      (funcall thunk))
    (or peg--stack t)))