basic updates
parent
2392559263
commit
de98d96c74
@ -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/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,14 @@
|
|||||||
|
#lang br/quicklang
|
||||||
|
(require brag/support "tokenizer.rkt")
|
||||||
|
|
||||||
|
(define (read-syntax path port)
|
||||||
|
(define tokens (apply-tokenizer make-tokenizer port))
|
||||||
|
(strip-bindings
|
||||||
|
#`(module basic-tokens-mod basic-demo/tokenize-only
|
||||||
|
#,@tokens)))
|
||||||
|
(module+ reader (provide read-syntax))
|
||||||
|
|
||||||
|
(define-macro (parser-only-mb TOKEN ...)
|
||||||
|
#'(#%module-begin
|
||||||
|
(list TOKEN ...)))
|
||||||
|
(provide (rename-out [parser-only-mb #%module-begin]))
|
Loading…
Reference in New Issue