Function: antlr-option-spec
antlr-option-spec is a byte-compiled function defined in
antlr-mode.el.gz.
Signature
(antlr-option-spec LEVEL OPTION SPECS EXISTSP)
Documentation
Return version correct option value specification.
Return specification for option OPTION of kind level LEVEL. SPECS
should correspond to the VALUE-SPEC... in antlr-options-alists.
EXISTSP determines whether the option already exists.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-option-spec (level option specs existsp)
"Return version correct option value specification.
Return specification for option OPTION of kind level LEVEL. SPECS
should correspond to the VALUE-SPEC... in `antlr-options-alists'.
EXISTSP determines whether the option already exists."
(let (value)
(while (and specs (>= antlr-tool-version (caar specs)))
(setq value (pop specs)))
(cond (value) ; found correct spec
((null specs) nil) ; didn't find any specs
(existsp (car specs)) ; wrong version, but already present
((y-or-n-p (format "Insert v%s %s option %s in v%s? "
(antlr-version-string (caar specs))
(elt antlr-options-headings (1- level))
option
(antlr-version-string antlr-tool-version)))
(car specs))
(t
(error "Didn't insert v%s %s option %s in v%s"
(antlr-version-string (caar specs))
(elt antlr-options-headings (1- level))
option
(antlr-version-string antlr-tool-version))))))