Function: wisent-grammar-terminals
wisent-grammar-terminals is a byte-compiled function defined in
grammar.el.gz.
Signature
(wisent-grammar-terminals)
Documentation
Return the list of terminal symbols.
Keep order of declaration in the WY file without duplicates.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/grammar.el.gz
(defun wisent-grammar-terminals ()
"Return the list of terminal symbols.
Keep order of declaration in the WY file without duplicates."
(let (terms)
(mapc
(lambda (tag)
(mapcar (lambda (name)
(add-to-list 'terms (intern name)))
(cons (semantic-tag-name tag)
(semantic-tag-get-attribute tag :rest))))
(semantic--find-tags-by-function
(lambda (tag)
(memq (semantic-tag-class tag) '(token keyword)))
(current-buffer)))
(nreverse terms)))