* somewhat fixed the ugly syntax-error message in syntax.ss
This commit is contained in:
parent
cd1de33b91
commit
ee738a9a62
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -439,8 +439,8 @@
|
||||||
(define-syntax stx-error
|
(define-syntax stx-error
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
(syntax-case x ()
|
(syntax-case x ()
|
||||||
[(_ stx) #'(error 'stx-error "invalid syntax ~s" (strip stx '()))]
|
[(_ stx) #'(error #f "invalid syntax ~s" (strip stx '()))]
|
||||||
[(_ stx msg) #'(error 'stx-error "~a: ~s" msg (strip stx '()))])))
|
[(_ stx msg) #'(error #f "~a: ~s" msg (strip stx '()))])))
|
||||||
(define sanitize-binding
|
(define sanitize-binding
|
||||||
(lambda (x src)
|
(lambda (x src)
|
||||||
(cond
|
(cond
|
||||||
|
@ -1647,6 +1647,8 @@
|
||||||
[(displaced-lexical)
|
[(displaced-lexical)
|
||||||
(stx-error e "identifier out of context")]
|
(stx-error e "identifier out of context")]
|
||||||
[(syntax) (stx-error e "reference to pattern variable outside a syntax form")]
|
[(syntax) (stx-error e "reference to pattern variable outside a syntax form")]
|
||||||
|
[(define define-syntax module)
|
||||||
|
(stx-error e "invalid expression")]
|
||||||
[else (error 'chi-expr "invalid type ~s for ~s" type
|
[else (error 'chi-expr "invalid type ~s for ~s" type
|
||||||
(strip e '())) (stx-error e)]))))
|
(strip e '())) (stx-error e)]))))
|
||||||
(define chi-set!
|
(define chi-set!
|
||||||
|
|
Loading…
Reference in New Issue