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.
14 lines
419 B
Racket
14 lines
419 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))
|
||
|
|
||
|
(define-macro (parser-only-mb TOKEN ...)
|
||
|
#'(#%module-begin
|
||
|
(list TOKEN ...)))
|
||
|
(provide (rename-out [parser-only-mb #%module-begin]))
|