You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/basic-demo/tokenize-only.rkt

14 lines
423 B
Racket

8 years ago
#lang br/quicklang
(require brag/support "tokenizer.rkt")
(define (read-syntax path port)
(define tokens (apply-tokenizer make-tokenizer port))
(strip-bindings
#`(module basic-tokens-mod basic-demo/tokenize-only
#,@tokens)))
(module+ reader (provide read-syntax))
8 years ago
(define-macro (tokenize-only-mb TOKEN ...)
8 years ago
#'(#%module-begin
(list TOKEN ...)))
8 years ago
(provide (rename-out [tokenize-only-mb #%module-begin]))