-
Notifications
You must be signed in to change notification settings - Fork 5
/
rewrite.rkt
26 lines (22 loc) · 983 Bytes
/
rewrite.rkt
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
#lang racket/base
;;______________________________________________________________
;; ______
;; ( // _____ ____ . __ __
;; ~//~ ((_)// // / / // ((_ ((_/_
;; (_//
;;..............................................................
;; Provides formica/rewrite module.
;;==============================================================
(require "private/rewrite/rewrite.rkt"
"private/rewrite/rewrite-repeated.rkt")
(provide (all-from-out "private/rewrite/rewrite.rkt"
"private/rewrite/rewrite-repeated.rkt")
(protect-out --> -->.))
(define-syntax -->
(syntax-id-rules ()
(--> (raise-syntax-error '--> "could be used only in rewriting rules."))))
(define-syntax -->.
(syntax-id-rules ()
(-->. (raise-syntax-error '-->. "could be used only in rewriting rules."))))
(require "private/tools/patterns.rkt")
(provide (all-from-out "private/tools/patterns.rkt"))