mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 06:50:31 +02:00
fix bug in define-scheme-translator
* module/language/scheme/translate.scm (define-scheme-translator): Fix a bug in this macro for the syntax-error case.
This commit is contained in:
parent
03fa04dfe1
commit
eb5f05c320
1 changed files with 3 additions and 1 deletions
|
@ -50,6 +50,8 @@
|
|||
|
||||
;; Looks up transformers relative to the current module at
|
||||
;; compilation-time. See also the discussion of ghil-lookup in ghil.scm.
|
||||
;;
|
||||
;; FIXME shadowing lexicals?
|
||||
(define (lookup-transformer head retrans)
|
||||
(let* ((mod (current-module))
|
||||
(val (and (symbol? head)
|
||||
|
@ -130,7 +132,7 @@
|
|||
(pmatch (cdr exp)
|
||||
,@clauses
|
||||
(else
|
||||
(syntax-error loc (format #f "bad ~A" ',sym exp)))))))
|
||||
(syntax-error l (format #f "bad ~A" ',sym) exp))))))
|
||||
|
||||
(define-scheme-translator quote
|
||||
;; (quote OBJ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue