|
|
@ -1,6 +1,10 @@
|
|
|
|
#lang br/quicklang
|
|
|
|
#lang br/quicklang
|
|
|
|
(require "tokenizer.rkt" "parser.rkt")
|
|
|
|
(require "tokenizer.rkt" "parser.rkt")
|
|
|
|
(define (read-syntax path port)
|
|
|
|
(define (syntax-no-bindings? stx)
|
|
|
|
|
|
|
|
(and (syntax? stx)
|
|
|
|
|
|
|
|
(equal? stx (strip-bindings stx))))
|
|
|
|
|
|
|
|
(define/contract (read-syntax path port)
|
|
|
|
|
|
|
|
(path? input-port? . -> . syntax?)
|
|
|
|
(define parse-tree (parse path (tokenize port)))
|
|
|
|
(define parse-tree (parse path (tokenize port)))
|
|
|
|
(define module-datum `(module jsonic-module br/demo/jsonic/expander
|
|
|
|
(define module-datum `(module jsonic-module br/demo/jsonic/expander
|
|
|
|
,parse-tree))
|
|
|
|
,parse-tree))
|
|
|
|