add debug dialects
parent
4e5f6d9acd
commit
33fe21405f
@ -0,0 +1,14 @@
|
|||||||
|
#lang br/quicklang
|
||||||
|
(require "parser.rkt" "tokenizer.rkt")
|
||||||
|
|
||||||
|
(define (read-syntax path port)
|
||||||
|
(define parse-tree (parse path (make-tokenizer port path)))
|
||||||
|
(strip-bindings
|
||||||
|
#`(module basic-parser-mod basic-demo-2/parse-only
|
||||||
|
#,parse-tree)))
|
||||||
|
(module+ reader (provide read-syntax))
|
||||||
|
|
||||||
|
(define-macro (parser-only-mb PARSE-TREE)
|
||||||
|
#'(#%module-begin
|
||||||
|
'PARSE-TREE))
|
||||||
|
(provide (rename-out [parser-only-mb #%module-begin]))
|
@ -0,0 +1,15 @@
|
|||||||
|
#lang br/quicklang
|
||||||
|
(require "parser.rkt" "tokenizer.rkt")
|
||||||
|
|
||||||
|
(define (read-syntax path port)
|
||||||
|
(define parse-tree (parse path (make-tokenizer port path)))
|
||||||
|
(strip-bindings
|
||||||
|
#`(module basic-parser-mod basic-demo-2/parse-stx
|
||||||
|
#'#,parse-tree)))
|
||||||
|
(module+ reader (provide read-syntax))
|
||||||
|
|
||||||
|
(define-macro (parser-only-mb PARSE-STX)
|
||||||
|
#'(#%module-begin
|
||||||
|
PARSE-STX))
|
||||||
|
(provide (rename-out [parser-only-mb #%module-begin]))
|
||||||
|
(provide syntax)
|
Loading…
Reference in New Issue