add `lexer-file-path`
parent
728a06cf0e
commit
d1205bb8c2
@ -1,9 +1,9 @@
|
|||||||
#lang br
|
#lang br
|
||||||
(require "lexer.rkt" brag/support racket/contract)
|
(require "lexer.rkt" brag/support)
|
||||||
|
|
||||||
(define (make-tokenizer ip [path #f])
|
(define (make-tokenizer ip [path #f])
|
||||||
(port-count-lines! ip)
|
(port-count-lines! ip)
|
||||||
(file-path path)
|
(lexer-file-path path)
|
||||||
(define (next-token) (basic-lexer ip))
|
(define (next-token) (basic-lexer ip))
|
||||||
next-token)
|
next-token)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue