Skip to content

Commit

Permalink
small code to show why I want source locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Yoo committed Jul 15, 2011
1 parent fb35fd5 commit b03259a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions small-lang.rkt
@@ -0,0 +1,14 @@
#lang racket


(provide (except-out (all-from-out racket)
#%app)
(rename-out [my-app #%app]))


(define-syntax (my-app stx)
(syntax-case stx ()
[(_ op rand ...)
(syntax/loc stx
(begin (#%app printf "applying ~e\n" (#%app list op rand ...))
(#%app op rand ...)))]))
8 changes: 8 additions & 0 deletions small-test.rkt
@@ -0,0 +1,8 @@
#lang s-exp "small-lang.rkt"


(require (planet dyoo/chaining-compare))

(printf "hi\n")

(chaining-compare 3 < (+ 2 2) string<? 5 < 6 < 7)

0 comments on commit b03259a

Please sign in to comment.