Function: antlr-read-boolean

antlr-read-boolean is a byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-read-boolean INITIAL-CONTENTS PROMPT &optional TABLE)

Documentation

Read a boolean value from the minibuffer, with completion.

If INITIAL-CONTENTS is non-nil, insert it in the minibuffer initially. PROMPT is a string to prompt with, normally it ends in a question mark and a space. "(true or false) " is appended if TABLE is nil.

Without TABLE, use y-or-n-p, otherwise read with completion over "true", "false" and the keys in TABLE, see also antlr-read-value.

Used inside antlr-options-alists.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-read-boolean (initial-contents prompt &optional table)
  "Read a boolean value from the minibuffer, with completion.
If INITIAL-CONTENTS is non-nil, insert it in the minibuffer initially.
PROMPT is a string to prompt with, normally it ends in a question mark
and a space.  \"(true or false) \" is appended if TABLE is nil.

Without TABLE, use `y-or-n-p', otherwise read with completion
over \"true\", \"false\" and the keys in TABLE, see also
`antlr-read-value'.

Used inside `antlr-options-alists'."
  (if table
      (antlr-read-value initial-contents prompt
                        nil table '(("false") ("true")))
    (if (y-or-n-p prompt) "true" "false")))