comparison lisp/progmodes/ebnf-yac.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 174466935578 4da4a09e8b1b
comparison
equal deleted inserted replaced
60916:480134f8cd16 60917:87f9bb9d3718
1 ;;; ebnf-yac.el --- parser for Yacc/Bison 1 ;;; ebnf-yac.el --- parser for Yacc/Bison
2 2
3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4 ;; Free Sofware Foundation, Inc. 4 ;; Free Sofware 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:50:46 vinicius> 8 ;; Time-stamp: <2004/04/03 16:50:46 vinicius>
344 ;; end of input 344 ;; end of input
345 ((>= (point) ebnf-limit) 345 ((>= (point) ebnf-limit)
346 'end-of-input) 346 'end-of-input)
347 ;; error 347 ;; error
348 ((eq token 'error) 348 ((eq token 'error)
349 (error "Illegal character")) 349 (error "Invalid character"))
350 ;; "string" 350 ;; "string"
351 ((eq token 'string) 351 ((eq token 'string)
352 (setq ebnf-yac-lex (ebnf-get-string)) 352 (setq ebnf-yac-lex (ebnf-get-string))
353 'string) 353 'string)
354 ;; terminal: 'char' 354 ;; terminal: 'char'
423 ((= (following-char) ?\") 423 ((= (following-char) ?\")
424 (ebnf-get-string)) 424 (ebnf-get-string))
425 ((= (following-char) ?\') 425 ((= (following-char) ?\')
426 (ebnf-string " -&(-~" ?\' "character")) 426 (ebnf-string " -&(-~" ?\' "character"))
427 (t 427 (t
428 (error "Illegal character")) 428 (error "Invalid character"))
429 ))) 429 )))
430 (ebnf-yac-skip-spaces)) 430 (ebnf-yac-skip-spaces))
431 431
432 432
433 (defun ebnf-yac-handle-comment () 433 (defun ebnf-yac-handle-comment ()
474 (when (= (following-char) ?/) 474 (when (= (following-char) ?/)
475 ;; end of comment 475 ;; end of comment
476 (forward-char) 476 (forward-char)
477 (setq not-end nil))) 477 (setq not-end nil)))
478 (t 478 (t
479 (error "Illegal character")) 479 (error "Invalid character"))
480 )))) 480 ))))
481 481
482 482
483 (defun ebnf-yac-eps-filename () 483 (defun ebnf-yac-eps-filename ()
484 (forward-char) 484 (forward-char)