mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 13:05:05 +02:00
Use ER macros for cyclone
This commit is contained in:
parent
2d32e7d983
commit
8ceae73cef
1 changed files with 14 additions and 0 deletions
|
@ -965,6 +965,20 @@
|
||||||
;; Otherwise COND-EXPANDed bits.
|
;; Otherwise COND-EXPANDed bits.
|
||||||
|
|
||||||
(cond-expand
|
(cond-expand
|
||||||
|
(cyclone
|
||||||
|
(define-syntax match-check-ellipsis
|
||||||
|
(er-macro-transformer
|
||||||
|
(lambda (expr rename compare)
|
||||||
|
(if (compare '... (cadr expr))
|
||||||
|
(car (cddr expr))
|
||||||
|
(cadr (cddr expr))))))
|
||||||
|
(define-syntax match-check-identifier
|
||||||
|
(er-macro-transformer
|
||||||
|
(lambda (expr rename compare)
|
||||||
|
(if (symbol? (cadr expr)) ;; TODO: good enough?
|
||||||
|
(car (cddr expr))
|
||||||
|
(cadr (cddr expr)))))))
|
||||||
|
|
||||||
(chibi
|
(chibi
|
||||||
(define-syntax match-check-ellipsis
|
(define-syntax match-check-ellipsis
|
||||||
(er-macro-transformer
|
(er-macro-transformer
|
||||||
|
|
Loading…
Add table
Reference in a new issue