add port-count-lines? to the lexer contract

This commit is contained in:
Robby Findler 2013-02-24 16:36:32 -06:00
parent a0059f791a
commit 18a5dcb3d3

View File

@ -5,7 +5,7 @@
(define lexer/c
(option/c
(or/c (->i ([in input-port?])
(or/c (->i ([in (and/c input-port? port-counts-lines?)])
(values [txt any/c]
[type symbol?]
[paren (or/c symbol? #f)]
@ -15,7 +15,7 @@
(and/c exact-positive-integer?
(>=/c start))
#f)]))
(->i ([in input-port?]
(->i ([in (and/c input-port? port-counts-lines?)]
[offset exact-nonnegative-integer?]
[mode any/c])
(values [txt any/c]