comparison lisp/progmodes/ebnf-bnf.el @ 63629:b42bf212f030

(ebnf-bnf-lex): Fix spellings.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 21 Jun 2005 13:48:18 +0000
parents 87f9bb9d3718
children 18a818a2ee7c b7da78284d4c
comparison
equal deleted inserted replaced
63628:6465d5fb8665 63629:b42bf212f030
107 ;; terminal = "\\([^\"\\]\\|\\\\[ -~\\240-\\377]\\)+". 107 ;; terminal = "\\([^\"\\]\\|\\\\[ -~\\240-\\377]\\)+".
108 ;; ;; that is, a valid terminal accepts any printable character (including 108 ;; ;; that is, a valid terminal accepts any printable character (including
109 ;; ;; 8-bit accentuated characters) except `"', as `"' is used to delimit a 109 ;; ;; 8-bit accentuated characters) except `"', as `"' is used to delimit a
110 ;; ;; terminal. Also, accepts escaped characters, that is, a character 110 ;; ;; terminal. Also, accepts escaped characters, that is, a character
111 ;; ;; pair starting with `\' followed by a printable character, for 111 ;; ;; pair starting with `\' followed by a printable character, for
112 ;; ;; example: \", \\. 112 ;; ;; example: \", \\.
113 ;; 113 ;;
114 ;; special = "[^?\\000-\\010\\012-\\037\\177-\\237]*". 114 ;; special = "[^?\\000-\\010\\012-\\037\\177-\\237]*".
115 ;; ;; that is, a valid special accepts any printable character (including 115 ;; ;; that is, a valid special accepts any printable character (including
116 ;; ;; 8-bit accentuated characters) and tabs except `?', as `?' is used to 116 ;; ;; 8-bit accentuated characters) and tabs except `?', as `?' is used to
117 ;; ;; delimit a special. 117 ;; ;; delimit a special.
427 (defconst ebnf-bnf-non-terminal-chars 427 (defconst ebnf-bnf-non-terminal-chars
428 (ebnf-range-regexp "!#%&'*-,0-:<>@-Z\\\\^-z~" ?\240 ?\377)) 428 (ebnf-range-regexp "!#%&'*-,0-:<>@-Z\\\\^-z~" ?\240 ?\377))
429 429
430 430
431 (defun ebnf-bnf-lex () 431 (defun ebnf-bnf-lex ()
432 "Lexical analyser for EBNF. 432 "Lexical analyzer for EBNF.
433 433
434 Return a lexical token. 434 Return a lexical token.
435 435
436 See documentation for variable `ebnf-bnf-lex'." 436 See documentation for variable `ebnf-bnf-lex'."
437 (if (>= (point) ebnf-limit) 437 (if (>= (point) ebnf-limit)