9 lines
311 B
Racket

#lang br/quicklang
(require "tokenizer.rkt" "parser.rkt")
(define (read-syntax path port)
(define parse-tree (parse path (make-tokenizer port)))
(define module-datum `(module jsonic-module jsonic-demo/expander
,parse-tree))
(datum->syntax #f module-datum))
(provide read-syntax)