updates
parent
6184ebb3e1
commit
b6a45815ab
@ -0,0 +1,4 @@
|
|||||||
|
#lang brag
|
||||||
|
jsonic-program: (s-exp | json-char)*
|
||||||
|
s-exp: SEXP-TOK
|
||||||
|
json-char: CHAR-TOK
|
@ -1,4 +1,4 @@
|
|||||||
#lang brag
|
#lang brag
|
||||||
jsonic-program: (s-exp | json-char)*
|
jsonic-program: (s-exp | json-char)*
|
||||||
s-exp: SEXP-TOK
|
s-exp: SEXP-TOK
|
||||||
json-char: CHAR-TOK
|
json-char: CHAR-TOK CHAR-TOK
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
#lang br/quicklang
|
#lang br/quicklang
|
||||||
(require "tokenizer.rkt" "parser.rkt")
|
(require "tokenizer.rkt" "parser.rkt")
|
||||||
(define (syntax-no-bindings? stx)
|
|
||||||
(and (syntax? stx)
|
|
||||||
(equal? stx (strip-bindings stx))))
|
|
||||||
(define/contract (read-syntax path port)
|
(define/contract (read-syntax path port)
|
||||||
(path? input-port? . -> . syntax?)
|
(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 jsonic/expander
|
||||||
,parse-tree))
|
,parse-tree))
|
||||||
(datum->syntax #f module-datum))
|
(datum->syntax #f module-datum))
|
||||||
(provide read-syntax)
|
(provide read-syntax)
|
Loading…
Reference in New Issue