simplify reader modules; put reader-modes in world
parent
14542cc2a6
commit
6a25de6462
@ -1,9 +1,4 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
(require pollen/lang/reader-base)
|
(require pollen/lang/reader-base)
|
||||||
|
|
||||||
(provide (rename-out [pollen-read read] [pollen-read-syntax read-syntax]) read-inner)
|
(make-reader-with-mode reader-mode-auto)
|
||||||
|
|
||||||
(define reader-mode 'auto)
|
|
||||||
(define pollen-read-syntax (make-pollen-read-syntax reader-mode))
|
|
||||||
(define pollen-read (make-pollen-read pollen-read-syntax))
|
|
@ -1,9 +1,4 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
(require pollen/lang/reader-base)
|
(require pollen/lang/reader-base)
|
||||||
|
|
||||||
(provide (rename-out [pollen-read read] [pollen-read-syntax read-syntax]) read-inner)
|
(make-reader-with-mode reader-mode-markup)
|
||||||
|
|
||||||
(define reader-mode 'markup)
|
|
||||||
(define pollen-read-syntax (make-pollen-read-syntax reader-mode))
|
|
||||||
(define pollen-read (make-pollen-read pollen-read-syntax))
|
|
@ -1,9 +1,4 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
(require pollen/lang/reader-base)
|
(require pollen/lang/reader-base)
|
||||||
|
|
||||||
(provide (rename-out [pollen-read read] [pollen-read-syntax read-syntax]) read-inner)
|
(make-reader-with-mode reader-mode-preproc)
|
||||||
|
|
||||||
(define reader-mode 'pre)
|
|
||||||
(define pollen-read-syntax (make-pollen-read-syntax reader-mode))
|
|
||||||
(define pollen-read (make-pollen-read pollen-read-syntax))
|
|
@ -1,9 +1,4 @@
|
|||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
(require pollen/lang/reader-base)
|
(require pollen/lang/reader-base)
|
||||||
|
|
||||||
(provide (rename-out [pollen-read read] [pollen-read-syntax read-syntax]) read-inner)
|
(make-reader-with-mode reader-mode-ptree)
|
||||||
|
|
||||||
(define reader-mode 'ptree)
|
|
||||||
(define pollen-read-syntax (make-pollen-read-syntax reader-mode))
|
|
||||||
(define pollen-read (make-pollen-read pollen-read-syntax))
|
|
Loading…
Reference in New Issue