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.
10 lines
346 B
Racket
10 lines
346 B
Racket
#lang br/quicklang
|
|
(require "tokenizer.rkt" "parser.rkt")
|
|
|
|
(define/contract (read-syntax path port)
|
|
(path? input-port? . -> . syntax?)
|
|
(define parse-tree (parse path (tokenize port)))
|
|
(define module-datum `(module jsonic-module jsonic/expander
|
|
,parse-tree))
|
|
(datum->syntax #f module-datum))
|
|
(provide read-syntax) |