Variable: ebnf-syntax

ebnf-syntax is a customizable variable defined in ebnf2ps.el.gz.

Value

ebnf

Documentation

Specify syntax to be recognized.

Valid values are:

   ebnf ebnf2ps recognizes the syntax described in ebnf2ps
documentation.
The following variables *ONLY* have effect with this
setting:
ebnf-terminal-regexp, ebnf-case-fold-search,
ebnf-lex-comment-char and ebnf-lex-eop-char.

   abnf ebnf2ps recognizes the syntax described in the URL:
                https://www.ietf.org/rfc/rfc2234.txt
("Augmented BNF for Syntax Specifications: ABNF").

   iso-ebnf ebnf2ps recognizes the syntax described in the URL:
                https://www.cl.cam.ac.uk/~mgk25/iso-ebnf.html
("International Standard of the ISO EBNF Notation").
The following variables *ONLY* have effect with this
setting:
ebnf-iso-alternative-p and ebnf-iso-normalize-p.

   yacc ebnf2ps recognizes the Yacc/Bison syntax.
The following variable *ONLY* has effect with this
setting:
ebnf-yac-ignore-error-recovery.

   ebnfx ebnf2ps recognizes the syntax described in the URL:
                https://www.w3.org/TR/2004/REC-xml-20040204/#sec-notation
("Extensible Markup Language (XML) 1.0 (Third Edition)")

   dtd ebnf2ps recognizes the syntax described in the URL:
                https://www.w3.org/TR/2004/REC-xml-20040204/
("Extensible Markup Language (XML) 1.0 (Third Edition)")

Any other value is treated as ebnf.

This variable was added, or its default value changed, in Emacs 20.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebnf2ps.el.gz
(defcustom ebnf-syntax 'ebnf
  "Specify syntax to be recognized.

Valid values are:

   `ebnf'	ebnf2ps recognizes the syntax described in ebnf2ps
		documentation.
		The following variables *ONLY* have effect with this
		setting:
		`ebnf-terminal-regexp', `ebnf-case-fold-search',
		`ebnf-lex-comment-char' and `ebnf-lex-eop-char'.

   `abnf'	ebnf2ps recognizes the syntax described in the URL:
                `https://www.ietf.org/rfc/rfc2234.txt'
		(\"Augmented BNF for Syntax Specifications: ABNF\").

   `iso-ebnf'	ebnf2ps recognizes the syntax described in the URL:
                `https://www.cl.cam.ac.uk/~mgk25/iso-ebnf.html'
		(\"International Standard of the ISO EBNF Notation\").
		The following variables *ONLY* have effect with this
		setting:
		`ebnf-iso-alternative-p' and `ebnf-iso-normalize-p'.

   `yacc'	ebnf2ps recognizes the Yacc/Bison syntax.
		The following variable *ONLY* has effect with this
		setting:
		`ebnf-yac-ignore-error-recovery'.

   `ebnfx'	ebnf2ps recognizes the syntax described in the URL:
                `https://www.w3.org/TR/2004/REC-xml-20040204/#sec-notation'
		(\"Extensible Markup Language (XML) 1.0 (Third Edition)\")

   `dtd'	ebnf2ps recognizes the syntax described in the URL:
                `https://www.w3.org/TR/2004/REC-xml-20040204/'
		(\"Extensible Markup Language (XML) 1.0 (Third Edition)\")

Any other value is treated as `ebnf'."
  :type '(radio :tag "Syntax"
		(const ebnf) (const abnf)  (const iso-ebnf)
		(const yacc) (const ebnfx) (const dtd))
  :version "20"
  :group 'ebnf-syntactic)