mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-07 05:06:36 +02:00
Added syntax-error
This commit is contained in:
parent
66f149da37
commit
b5962fa8bb
1 changed files with 6 additions and 1 deletions
|
@ -137,6 +137,7 @@
|
||||||
exact
|
exact
|
||||||
inexact
|
inexact
|
||||||
eof-object
|
eof-object
|
||||||
|
syntax-error
|
||||||
|
|
||||||
;;;;
|
;;;;
|
||||||
; Possibly missing functions:
|
; Possibly missing functions:
|
||||||
|
@ -187,7 +188,6 @@
|
||||||
; textual-port?
|
; textual-port?
|
||||||
;
|
;
|
||||||
; ;; syntax-rules
|
; ;; syntax-rules
|
||||||
; syntax-error
|
|
||||||
; syntax-rules
|
; syntax-rules
|
||||||
; parameterize
|
; parameterize
|
||||||
; define-values
|
; define-values
|
||||||
|
@ -450,6 +450,11 @@
|
||||||
(else x)))
|
(else x)))
|
||||||
(qq (cadr expr) 0))))
|
(qq (cadr expr) 0))))
|
||||||
|
|
||||||
|
(define-syntax syntax-error
|
||||||
|
(er-macro-transformer
|
||||||
|
(lambda (expr rename compare)
|
||||||
|
(apply error (cdr expr)))))
|
||||||
|
|
||||||
;; TODO: The whitespace characters are space, tab, line feed, form feed (not in parser yet), and carriage return.
|
;; TODO: The whitespace characters are space, tab, line feed, form feed (not in parser yet), and carriage return.
|
||||||
(define call-with-current-continuation call/cc)
|
(define call-with-current-continuation call/cc)
|
||||||
;; TODO: this is from r7rs, but is not really good enough by itself
|
;; TODO: this is from r7rs, but is not really good enough by itself
|
||||||
|
|
Loading…
Add table
Reference in a new issue