Function: semantic-lex-token-p

semantic-lex-token-p is a byte-compiled function defined in lex.el.gz.

Signature

(semantic-lex-token-p THING)

Documentation

Return non-nil if THING is a semantic lex token.

This is an exhaustively robust check.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/lex.el.gz
(defun semantic-lex-token-p (thing)
  "Return non-nil if THING is a semantic lex token.
This is an exhaustively robust check."
  (and (consp thing)
       (symbolp (car thing))
       (or (and (numberp (nth 1 thing))
		(numberp (nthcdr 2 thing)))
	   (and (stringp (nth 1 thing))
		(numberp (nth 2 thing))
		(numberp (nthcdr 3 thing)))
	   ))
  )