Function: ebnf-parse-and-sort
ebnf-parse-and-sort is a byte-compiled function defined in
ebnf2ps.el.gz.
Signature
(ebnf-parse-and-sort START)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ebnf2ps.el.gz
(defun ebnf-parse-and-sort (start)
(ebnf-log "(ebnf-parse-and-sort %S)" start)
(ebnf-begin-job)
(let ((tree (funcall ebnf-parser-func start)))
(if ebnf-sort-production
(progn
(message "Sorting...")
(sort tree
(if (eq ebnf-sort-production 'ascending)
'ebnf-sorter-ascending
'ebnf-sorter-descending)))
(nreverse tree))))