You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
604 B
Racket
23 lines
604 B
Racket
#lang s-exp syntax/module-reader
|
|
br/ragg/examples/simple-line-drawing/semantics
|
|
#:read my-read
|
|
#:read-syntax my-read-syntax
|
|
#:info my-get-info
|
|
#:whole-body-readers? #t
|
|
|
|
(require br/ragg/examples/simple-line-drawing/lexer
|
|
br/ragg/examples/simple-line-drawing/grammar)
|
|
|
|
(define (my-read in)
|
|
(syntax->datum (my-read-syntax #f in)))
|
|
|
|
(define (my-read-syntax src ip)
|
|
(list (parse src (tokenize ip))))
|
|
|
|
(define (my-get-info key default default-filter)
|
|
(case key
|
|
[(color-lexer)
|
|
(dynamic-require 'syntax-color/default-lexer 'default-lexer)]
|
|
[else
|
|
(default-filter key default)]))
|