Mercurial > emacs
comparison lisp/progmodes/ebnf-iso.el @ 60917:87f9bb9d3718
* progmodes/ebnf-abn.el, progmodes/ebnf-bnf.el,
progmodes/ebnf-ebx.el, progmodes/ebnf-dtd.el, progmodes/ebnf-iso.el,
progmodes/ebnf-yac.el, progmodes/ebnf2ps.el, progmodes/idlwave.el,
progmodes/sh-script.el, progmodes/xscheme.el: Replace `illegal' with
`invalid'.
author | Werner LEMBERG <wl@gnu.org> |
---|---|
date | Fri, 25 Mar 2005 08:47:00 +0000 |
parents | fc6e53c00fcf |
children | 8b6b95ebbe8f 4da4a09e8b1b |
comparison
equal
deleted
inserted
replaced
60916:480134f8cd16 | 60917:87f9bb9d3718 |
---|---|
1 ;;; ebnf-iso.el --- parser for ISO EBNF | 1 ;;; ebnf-iso.el --- parser for ISO EBNF |
2 | 2 |
3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 | 3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
4 ;; Free Software Foundation, Inc. | 4 ;; Free Software Foundation, Inc. |
5 | 5 |
6 ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> |
7 ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> | 7 ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> |
8 ;; Time-stamp: <2004/04/03 16:48:52 vinicius> | 8 ;; Time-stamp: <2004/04/03 16:48:52 vinicius> |
110 ;; Differences Between ISO EBNF And ebnf2ps ISO EBNF | 110 ;; Differences Between ISO EBNF And ebnf2ps ISO EBNF |
111 ;; ------------------------------------------------- | 111 ;; ------------------------------------------------- |
112 ;; | 112 ;; |
113 ;; ISO EBNF accepts the characters given by <character> production above, | 113 ;; ISO EBNF accepts the characters given by <character> production above, |
114 ;; HORIZONTAL TAB (^I), VERTICAL TAB (^K), NEWLINE (^J or ^M) and FORM FEED | 114 ;; HORIZONTAL TAB (^I), VERTICAL TAB (^K), NEWLINE (^J or ^M) and FORM FEED |
115 ;; (^L), any other characters are illegal. But ebnf2ps accepts also the | 115 ;; (^L), any other characters are invalid. But ebnf2ps accepts also the |
116 ;; european 8-bit accentuated characters (from \240 to \377) and underscore | 116 ;; european 8-bit accentuated characters (from \240 to \377) and underscore |
117 ;; (_). | 117 ;; (_). |
118 ;; | 118 ;; |
119 ;; | 119 ;; |
120 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 120 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
425 ;; end of input | 425 ;; end of input |
426 ((>= (point) ebnf-limit) | 426 ((>= (point) ebnf-limit) |
427 'end-of-input) | 427 'end-of-input) |
428 ;; error | 428 ;; error |
429 ((eq token 'error) | 429 ((eq token 'error) |
430 (error "Illegal character")) | 430 (error "Invalid character")) |
431 ;; integer | 431 ;; integer |
432 ((eq token 'integer) | 432 ((eq token 'integer) |
433 (setq ebnf-iso-lex (ebnf-buffer-substring "0-9")) | 433 (setq ebnf-iso-lex (ebnf-buffer-substring "0-9")) |
434 'integer) | 434 'integer) |
435 ;; special: ?special? | 435 ;; special: ?special? |
525 (when (= (following-char) ?*) | 525 (when (= (following-char) ?*) |
526 ;; beginning of comment | 526 ;; beginning of comment |
527 (forward-char) | 527 (forward-char) |
528 (setq pair (1+ pair)))) | 528 (setq pair (1+ pair)))) |
529 (t | 529 (t |
530 (error "Illegal character")) | 530 (error "Invalid character")) |
531 )))) | 531 )))) |
532 | 532 |
533 | 533 |
534 (defun ebnf-iso-eps-filename () | 534 (defun ebnf-iso-eps-filename () |
535 (forward-char) | 535 (forward-char) |