@@ -247,17 +247,30 @@ A lexer that only identifies @litchar{(}, @litchar{)}, @litchar{[},
247
247
@defproc[(module-lexer [in input-port?]
248
248
[offset exact-nonnegative-integer?]
249
249
[mode (or/c #f
250
- (-> input-port? any )
251
- (cons/c (-> input-port? any/c any ) any/c))])
252
- (values (or/c string? eof-object?)
250
+ (-> input-port? exact-nonnegative-integer?any)
251
+ (cons/c (-> input-port?
252
+ exact-nonnegative-integer?
253
+ any/c
254
+ any )
255
+ any/c))])
256
+ (values (or/c string? eof-object?)
253
257
symbol?
254
- (or/c symbol? #f )
255
- (or/c number? #f )
258
+ (or/c symbol? #f )
259
+ (or/c number? #f )
256
260
(or/c number? #f )
257
261
exact-nonnegative-integer?
258
- (or/c #f
262
+ (or/c #f
259
263
(-> input-port? any )
260
- (cons/c (-> input-port? any/c any ) any/c)))]{
264
+ (cons/c (-> input-port? exact-nonnegative-integer?
265
+ any/c
266
+ any )
267
+ any/c)
268
+ (struct/c dont-stop
269
+ ((cons/c (-> input-port?
270
+ exact-nonnegative-integer?
271
+ any/c
272
+ any )
273
+ any/c)))))]{
261
274
262
275
Like @racket[racket-lexer], but with several differences:
263
276
@@ -307,17 +320,31 @@ Like @racket[racket-lexer], but with several differences:
307
320
[offset exact-nonnegative-integer?]
308
321
[mode (or/c #f
309
322
(-> input-port? any )
310
- (cons/c (-> input-port? any/c any ) any/c))])
323
+ (cons/c (-> input-port?
324
+ exact-nonnegative-integer?
325
+ any/c
326
+ any )
327
+ any/c))])
311
328
(values (or/c string? eof-object?)
312
329
(or/c symbol?
313
330
(and/c (hash/c symbol? any/c) immutable?))
314
331
(or/c symbol? #f )
315
332
(or/c number? #f )
316
333
(or/c number? #f )
317
334
exact-nonnegative-integer?
318
- (or/c #f
335
+ (or/c #f
319
336
(-> input-port? any )
320
- (cons/c (-> input-port? any/c any ) any/c)))]{
337
+ (cons/c (-> input-port?
338
+ exact-nonnegative-integer?
339
+ any/c
340
+ any )
341
+ any/c)
342
+ (struct/c dont-stop
343
+ ((cons/c (-> input-port?
344
+ exact-nonnegative-integer?
345
+ any/c
346
+ any )
347
+ any/c)))))]{
321
348
322
349
Like @racket[module-lexer], except that the attribute result
323
350
propagated from a language-specific lexer can be a hash table.
0 commit comments