add port-count-lines? to the lexer contract
This commit is contained in:
parent
a0059f791a
commit
18a5dcb3d3
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user