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.
28 lines
553 B
Racket
28 lines
553 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)
|
|
(define/public (process . args)
|
|
(void))
|
|
(define/public (preEncode . args)
|
|
(void))
|
|
#;(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)
|
|
|
|
|