annotate lisp/ilisp/ilisp-acl.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-acl.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 Allegro 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 ;;; Various patches provided by Kimball Collins
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; <kpc@ptolemy-ethernet.arc.nasa.gov>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;;%%%Allegro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (defvar ilisp-allegro-init-file "allegro.lisp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (defun allegro-check-prompt (old new)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 "Compare the break level printed at the beginning of the prompt."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (let* ((old-level (if (and old (eq 1 (string-match "[0-9]+" old)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (string-to-int (substring old 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (new-level (if (eq 1 (string-match "[0-9]+" new))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (string-to-int (substring new 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 0)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (<= new-level old-level)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defdialect allegro "Allegro Common LISP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 clisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (ilisp-load-init 'allegro ilisp-allegro-init-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (setq comint-fix-error ":pop"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ilisp-reset ":reset"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 comint-continue ":cont"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 comint-interrupt-regexp "Error: [^\n]* interrupt\)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (setq comint-prompt-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (function (lambda (old line)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (comint-prompt-status old line 'allegro-check-prompt))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ;; <cl> or package> at top-level
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ;; [0-9c] <cl> or package> in error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ;; (setq comint-prompt-regexp "^\\(\\[[0-9]*c*\\] \\|\\)\\(<\\|\\)[^>]*> ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ;; (setq comint-prompt-regexp "^\\(\\[[0-9]+i?c?\\] \\|\\[step\\]\\)?\\(<?[-A-Za-z]* ?[0-9]*?>\\|[-A-Za-z0-9]+([0-9]+):\\) ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ;; Patch by kpc 94/8/30: allow prompts that look like this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;; USER(23): USER(23):
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (setq comint-prompt-regexp "^\\(\\(\\[[0-9]+i?c?\\] \\|\\[step\\] \\)?\\(<?[-A-Za-z]* ?[0-9]*?>\\|[-A-Za-z0-9]+([0-9]+):\\) \\)+")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (setq ilisp-error-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 "\\(ILISP:[^\"]*\\)\\|\\(Error:[^\n]*\\)\\|\\(Break:[^\n]*\\)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (setq ilisp-binary-command "excl:*fasl-default-type*")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (setq ilisp-source-types (append ilisp-source-types '(("any"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (setq ilisp-find-source-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "(ILISP:ilisp-source-files \"%s\" \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (setq ilisp-init-binary-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ;; Patch provided by kpc 94/8/30: distinguish among
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ;; fasl-incompatible allegro versions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 "(let ((ext (or #+m68k \"68fasl\"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #+sparc \"sfasl\"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #+iris4d \"ifasl\"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #+dec3100 \"pfasl\"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 excl:*fasl-default-type*)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #+allegro-v4.0 (setq ext (concatenate 'string ext \"40\"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #+allegro-v4.1 (setq ext (concatenate 'string ext \"41\"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 #+allegro-v4.2 (setq ext (concatenate 'string ext \"42\"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ext)"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (if (not allegro-program) (setq allegro-program "cl"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85