Mercurial > emacs
comparison lisp/progmodes/ebnf-ebx.el @ 63633:2bca9aad87e8
(ebnf-ebx-lex): Fix spellings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 21 Jun 2005 13:51:40 +0000 |
parents | 87f9bb9d3718 |
children | 18a818a2ee7c b7da78284d4c |
comparison
equal
deleted
inserted
replaced
63632:174466935578 | 63633:2bca9aad87e8 |
---|---|
293 (if (eq (car term) 'exception) | 293 (if (eq (car term) 'exception) |
294 (let ((except (ebnf-ebx-term (ebnf-ebx-lex)))) | 294 (let ((except (ebnf-ebx-term (ebnf-ebx-lex)))) |
295 (cons (car except) | 295 (cons (car except) |
296 (ebnf-make-except (cdr term) (cdr except)))) | 296 (ebnf-make-except (cdr term) (cdr except)))) |
297 term))) | 297 term))) |
298 | 298 |
299 | 299 |
300 | 300 |
301 ;;; term ::= factor ('*' | '+' | '?')? | 301 ;;; term ::= factor ('*' | '+' | '?')? |
302 | 302 |
303 | 303 |
414 (defconst ebnf-ebx-non-terminal-letter-chars | 414 (defconst ebnf-ebx-non-terminal-letter-chars |
415 (ebnf-range-regexp "A-Za-z" ?\240 ?\377)) | 415 (ebnf-range-regexp "A-Za-z" ?\240 ?\377)) |
416 | 416 |
417 | 417 |
418 (defun ebnf-ebx-lex () | 418 (defun ebnf-ebx-lex () |
419 "Lexical analyser for EBNFX. | 419 "Lexical analyzer for EBNFX. |
420 | 420 |
421 Return a lexical token. | 421 Return a lexical token. |
422 | 422 |
423 See documentation for variable `ebnf-ebx-lex'." | 423 See documentation for variable `ebnf-ebx-lex'." |
424 (if (>= (point) ebnf-limit) | 424 (if (>= (point) ebnf-limit) |
501 (error "Invalid character")) | 501 (error "Invalid character")) |
502 (or (= (following-char) ?\]) | 502 (or (= (following-char) ?\]) |
503 (error "Missing end of constraint `]'")) | 503 (error "Missing end of constraint `]'")) |
504 (forward-char) | 504 (forward-char) |
505 t) | 505 t) |
506 | 506 |
507 | 507 |
508 | 508 |
509 (defun ebnf-ebx-skip-end-of-rule () | 509 (defun ebnf-ebx-skip-end-of-rule () |
510 (let (eor-p) | 510 (let (eor-p) |
511 (while (progn | 511 (while (progn |