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
#lang racket | |
(require syntax/modread | |
racket/cmdline | |
drracket/check-syntax | |
syntax/parse) | |
(collect-garbage) | |
(define collector% |
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
#lang racket | |
(require syntax/modread | |
racket/cmdline | |
drracket/check-syntax) | |
(define filename (command-line #:args (filename) filename)) | |
(define src (path->complete-path (string->path filename))) | |
(define-values (src-dir _1 _2) (split-path src)) |
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
#lang racket | |
; some code copied from https://github.com/greghendershott/racket-mode/blob/master/racket/keywords.rkt | |
(define (exports mod #:only-stx? [only-stx? #f]) | |
(define (ids phases) | |
(for*/list ([phase phases] | |
[item (cdr phase)]) | |
(car item))) |