Variable: antlr-v4-options-alists

antlr-v4-options-alists is a variable defined in antlr-mode.el.gz.

Value

(nil
 (("language" antlr-language-option-extra antlr-read-language
   "Generated language: ")
  ("tokenVocab" nil antlr-read-value "Token vocabulary: ")
  ("TokenLabelType" nil antlr-read-value "Token type: ")
  ("superClass" nil antlr-read-value "Super class: ")
  ("contextSuperClass" nil antlr-read-value
   "Rule context super class: ")
  ("exportMacro" antlr-c++-mode-extra antlr-read-value
   "Export macro: "))
 nil nil)

Documentation

Value for antlr-options-alists when using ANTLR v4.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defvar antlr-v4-options-alists
  ;; see https://github.com/antlr/antlr4 - doc/options.md
  '(()                                  ; no file options
    (;; grammar options ------------------------------------------------------
     ("language"
      ;; The target language for code generation. Default is Java. See Code
      ;; Generation Targets for list of currently supported target languages.
      antlr-language-option-extra antlr-read-language "Generated language: ")
     ("tokenVocab"
      ;; Where ANTLR should get predefined tokens and token types. Tree
      ;; grammars need it to get the token types from the parser that creates
      ;; its trees. Default value: Do not import token vocab.
      nil antlr-read-value "Token vocabulary: ")
     ("TokenLabelType"                  ; parser and tree only
      ;; Set the type of all tree labels and tree-valued expressions. Without
      ;; this option, trees are of type Object. TODO: Cross-reference default
      ;; impl (org.antlr.runtime.tree.CommonTree in Java)?
      nil antlr-read-value "Token type: ")
     ("superClass"                      ; in combined grammar: for parser
      ;; Set the superclass of the generated recognizer. Default value
      ;; Lexer/Parser/TreeParser (org.antlr.runtime.Parser in Java)?
      nil antlr-read-value "Super class: ")
     ("contextSuperClass"
      nil antlr-read-value "Rule context super class: ")
     ("exportMacro"                     ; doc/cpp-target.md
      antlr-c++-mode-extra antlr-read-value "Export macro: "))
    nil                                 ; no rule option yet
    nil                                 ; no subrule options
    ;; use ??, *?, +? for non-greedy subrules
    ;; (but there are some greedy options in grammars-v4-master/...)
     ;; rule element options in v4 are actually different (and have a different
     ;; syntax): <optionname = value> - not yet supported
     ;; after op: <assoc=left|right>
     ;; after sempred: <fail={expr}>
    )
  "Value for `antlr-options-alists' when using ANTLR v4.")