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.
15 lines
438 B
Racket
15 lines
438 B
Racket
#lang br/quicklang
|
|
(require "parser.rkt" "tokenizer.rkt")
|
|
|
|
(define (read-syntax path port)
|
|
(define parse-tree (parse path (make-tokenizer port path)))
|
|
(strip-bindings
|
|
#`(module basic-parser-mod basic-demo-2/parse-stx
|
|
#'#,parse-tree)))
|
|
(module+ reader (provide read-syntax))
|
|
|
|
(define-macro (parser-only-mb PARSE-STX)
|
|
#'(#%module-begin
|
|
PARSE-STX))
|
|
(provide (rename-out [parser-only-mb #%module-begin]))
|
|
(provide syntax) |