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.
11 lines
357 B
Racket
11 lines
357 B
Racket
8 years ago
|
#lang br/quicklang
|
||
|
(require "tokenizer.rkt" "parser.rkt")
|
||
8 years ago
|
|
||
8 years ago
|
(define/contract (read-syntax path port)
|
||
8 years ago
|
(any/c input-port? . -> . syntax?)
|
||
8 years ago
|
(define parse-tree (parse path (tokenize port)))
|
||
8 years ago
|
(define module-datum `(module jsonic-module br/demo/jsonic-2/expander
|
||
8 years ago
|
,parse-tree))
|
||
|
(datum->syntax #f module-datum))
|
||
8 years ago
|
(provide read-syntax)
|