annotate lisp/ilisp/ilisp-kcl.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children b82b59fe008d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; -*- Mode: Emacs-Lisp -*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; ilisp-kcl.el --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;; This file is part of ILISP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; Version: 5.7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; 1993, 1994 Ivan Vasquez
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; 1994, 1995 Marco Antoniotti and Rick Busdiecker
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; Other authors' names for which this Copyright notice also holds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; may appear later in this file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; Send mail to 'ilisp-request@lehman.com' to be included in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; ILISP mailing list. 'ilisp@lehman.com' is the general ILISP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; mailing list were bugs and improvements are discussed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; ILISP is freely redistributable under the terms found in the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; COPYING.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; ILISP Kyoto Common Lisp dialect definition
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;%%%KCL--these dialects by Tom Emerson
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; kcl-check-prompt doesn't after the first break because the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; number of ">" characters doesn't increase.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (defun kcl-check-prompt (old new)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 "Compare the break level printed at the beginning of the prompt."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (let* ((was-in-break (and old (string-match ">+" old)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (old-level (if was-in-break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (- (match-end 0) (match-beginning 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (is-in-break (string-match ">+" new))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (new-level (if is-in-break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (- (match-end 0) (match-beginning 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 0)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (<= new-level old-level)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (defdialect kcl "Kyoto Common LISP" clisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (setq comint-prompt-regexp "^>+"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ilisp-error-regexp "Error: "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ilisp-binary-extension "o"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 comint-fix-error ":q"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 comint-continue ":r"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 comint-prompt-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (lambda (old line)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (comint-prompt-status old line 'kcl-check-prompt)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (if (not kcl-program) (setq kcl-program "kcl"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ;;;%%%AKCL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 (defdialect akcl "Austin Kyoto Common LISP" kcl)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (if (not akcl-program) (setq akcl-program "akcl"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;;;%%%IBCL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (defdialect ibcl "Ibuki Common LISP" kcl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (setq comint-prompt-regexp "^[-A-Z]*>+\\|^[-A-Z]* ->"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 comint-interrupt-regexp ">>Condition: Terminal Interrupt"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 comint-continue ":q"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ilisp-reset ":q!"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ilisp-error-regexp ">>Error:"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (if (not ibcl-program) (setq ibcl-program "ibcl"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ;;; GCL -- I assume it is exactly as AKCL.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;;; Should check whether it is similar to IBUKI.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (defdialect gcl "GNU Common LISP" akcl)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (if (not gcl-program) (setq gcl-program "gcl"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ;;; ECL -- Beppe Attardi's developments over AKCL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (defdialect ecl "EcoLisp Common LISP" akcl)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (if (not ecl-program) (setq gcl-program "ecl"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ;;; end of file -- ilisp-kcl.el --