Function: peg-translate-exp

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

Signature

(peg-translate-exp EXP)

Documentation

Return the Emacs Lisp code to match the PE EXP.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/peg.el.gz
;; This is the main translation function.
(defun peg-translate-exp (exp)
  "Return the Emacs Lisp code to match the PE EXP."
  ;; FIXME: This expansion basically duplicates `exp' in the output, which is
  ;; a serious problem because it's done recursively, so it makes the output
  ;; code's size exponentially larger than the input!
  `(or ,(apply #'peg--translate exp)
       (peg--record-failure ',exp))) ; for error reporting