zybino/old-code/tokenizer.rkt
2020-06-09 14:50:42 +12:00

11 lines
218 B
Racket

#lang br
(require "lexer.rkt" brag/support)
(define (make-tokenizer ip [path #f])
(port-count-lines! ip)
(lexer-file-path path)
(define (next-token) (basic-lexer ip))
next-token)
(provide make-tokenizer)