-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from drym-org/first-optimizations
First Optimizations
- Loading branch information
Showing
25 changed files
with
1,582 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#lang racket/base | ||
|
||
(provide qi-expansion-step | ||
define-qi-expansion-step) | ||
|
||
(require macro-debugger/emit) | ||
|
||
;; These macros emit expansion "events" that allow the macro | ||
;; stepper to report stages in the expansion of an expression, | ||
;; giving us visibility into this process for debugging purposes. | ||
;; Note that this currently does not distinguish substeps | ||
;; of a parent expansion step. | ||
(define-syntax-rule (qi-expansion-step name stx0 stx1) | ||
(let () | ||
(emit-local-step stx0 stx1 #:id #'name) | ||
stx1)) | ||
|
||
(define-syntax-rule (define-qi-expansion-step (name stx0) | ||
body ...) | ||
(define (name stx0) | ||
(let ([stx1 (let () body ...)]) | ||
(qi-expansion-step name stx0 stx1)))) |
Oops, something went wrong.