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/jsonic-demo-2/reader.rkt

11 lines
390 B
Racket

#lang br/quicklang
(require "tokenizer.rkt" "parser.rkt" racket/contract)
(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 (contract-out
[read-syntax (any/c input-port? . -> . syntax?)]))