-
Notifications
You must be signed in to change notification settings - Fork 3
/
syntaxboot.scm
30 lines (20 loc) · 1.01 KB
/
syntaxboot.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;;;============================================================================
;;; File: "syntaxboot.scm"
;;; Copyright (c) 2000-2014 by Marc Feeley, All Rights Reserved.
;;;============================================================================
;; This file implements an unhygienic version of the (syntax-case ...)
;; and (syntax ...) forms that are used for bootstrapping.
;;;----------------------------------------------------------------------------
(include "syntaxpattern.scm") ;; needed by expansion of syntax-case and syntax forms
(include "syntaxtemplate.scm")
(include "syntaxcommon.scm")
;;;----------------------------------------------------------------------------
(##define-syntax syntax-case
(lambda (src)
(##include "syntaxcasexformboot.scm")
(syn#syntax-case-form-transformer src)))
(##define-syntax syntax
(lambda (src)
(##include "syntaxxformboot.scm")
(syn#syntax-form-transformer src '())))
;;;============================================================================