Function: wisent-grammar-expand-macros

wisent-grammar-expand-macros is a byte-compiled function defined in grammar.el.gz.

Signature

(wisent-grammar-expand-macros EXPR)

Documentation

Expand expression EXPR into a form without grammar macros.

Return the expanded expression.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/grammar.el.gz
(defun wisent-grammar-expand-macros (expr)
  "Expand expression EXPR into a form without grammar macros.
Return the expanded expression."
  (if (or (atom expr) (semantic-grammar-quote-p (car expr)))
      expr ;; Just return atom or quoted expression.
    (let* ((expr  (mapcar #'wisent-grammar-expand-macros expr))
           (macro (assq (car expr) wisent--grammar-macros)))
      (if macro ;; Expand Semantic built-in.
          (apply (cdr macro) (cdr expr))
        expr))))