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.
typesetting/pitfall/restructure/helper.rkt

24 lines
451 B
Racket

#lang racket/base
(require (for-syntax racket/base br/syntax) racket/class br/define)
(provide (all-defined-out))
(define RBase
(class object%
(super-new)
(abstract decode)
(abstract encode)
#;(abstract size)))
(define-macro (test-module . EXPRS)
#`(module+ test
(require #,(datum->syntax caller-stx 'rackunit))
. EXPRS))
(define (port-position port)
(define-values (l c p) (port-next-location port))
p)