dev-srcloc
Matthew Butterick 8 years ago
parent 451c006d40
commit a331e63aac

@ -1,5 +1,6 @@
#lang br/quicklang #lang br/quicklang
(require json) (require json)
(define-macro (js-module-begin PARSE-TREE) (define-macro (js-module-begin PARSE-TREE)
#'(#%module-begin #'(#%module-begin
(define result-string PARSE-TREE) (define result-string PARSE-TREE)

@ -1,8 +1,6 @@
#lang br #lang br
(require br/demo/jsonic-2/parser (require "parser.rkt" "tokenizer.rkt"
br/demo/jsonic-2/tokenizer brag/support rackunit)
brag/support
rackunit)
(check-equal? (check-equal?
(parse-tree (apply-tokenizer tokenize "// line commment\n")) (parse-tree (apply-tokenizer tokenize "// line commment\n"))

@ -1,4 +1,4 @@
#lang brag #lang brag
jsonic-program: (s-exp | json-char)* jsonic-program: (json-char | s-exp)*
s-exp: SEXP-TOK
json-char: CHAR-TOK json-char: CHAR-TOK
s-exp: SEXP-TOK

@ -1,4 +1,4 @@
#lang brag #lang brag
jsonic-program: (s-exp | json-char)* jsonic-program: (json-char | s-exp)*
s-exp: SEXP-TOK
json-char: CHAR-TOK json-char: CHAR-TOK
s-exp: SEXP-TOK

Loading…
Cancel
Save