aboutsummaryrefslogtreecommitdiff
path: root/src/boot/strap/includer.clisp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-05-19 17:33:39 +0000
committerdos-reis <gdr@axiomatics.org>2008-05-19 17:33:39 +0000
commit7123c2aa973a96cfdd8a8afae08830577e66b0ee (patch)
tree6da9801e4a5b65e4133a4bc076562cc9e83bedfb /src/boot/strap/includer.clisp
parentf896b8096ecaf448a23d59a4c2bc23916a0bb8a1 (diff)
downloadopen-axiom-7123c2aa973a96cfdd8a8afae08830577e66b0ee.tar.gz
* boot/ast.boot: Cleanup.
* boot/includer.boot: Likewise. * boot/parser.boot: Likewise. * boot/pile.boot: Likewise. * boot/scanner.boot: Likewise. * boot/tokens.boot: Likewise. * boot/translator.boot: Likewise.
Diffstat (limited to 'src/boot/strap/includer.clisp')
-rw-r--r--src/boot/strap/includer.clisp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/boot/strap/includer.clisp b/src/boot/strap/includer.clisp
index 60cbd62e..c4a036de 100644
--- a/src/boot/strap/includer.clisp
+++ b/src/boot/strap/includer.clisp
@@ -1,9 +1,9 @@
(IMPORT-MODULE "tokens")
-(PROVIDE "includer")
-
(IN-PACKAGE "BOOTTRAN")
+(PROVIDE "includer")
+
(DEFUN PNAME (|x|)
(COND
((SYMBOLP |x|) (SYMBOL-NAME |x|))
@@ -38,6 +38,14 @@
(DEFUN |shoeSpaces| (|n|) (MAKE-FULL-CVEC |n| "."))
+(DEFUN |diagnosticLocation| (|tok|)
+ (PROG (|pos|)
+ (RETURN
+ (PROGN
+ (SETQ |pos| (|shoeTokPosn| |tok|))
+ (CONCAT "line " (STRINGIMAGE (|lineNo| |pos|)) ", column "
+ (STRINGIMAGE (|lineCharacter| |pos|)))))))
+
(DEFUN |SoftShoeError| (|posn| |key|)
(PROGN
(|coreError| (LIST "in line " (STRINGIMAGE (|lineNo| |posn|))))