On this page:
module-lexer
module-lexer*

5 Module Lexer🔗ℹ

 (require syntax-color/module-lexer)
  package: syntax-color-lib

procedure

(module-lexer in offset mode)

  
(or/c string? eof-object?)
symbol?
(or/c symbol? #f)
(or/c number? #f)
(or/c number? #f)
exact-nonnegative-integer?
(or/c #f
      (-> input-port? any)
      (cons/c (-> input-port? exact-nonnegative-integer?
                  any/c
                  any)
              any/c)
      (struct/c dont-stop
                ((cons/c (-> input-port?
                             exact-nonnegative-integer?
                             any/c
                             any)
                         any/c))))
  in : input-port?
  offset : exact-nonnegative-integer?
  mode : 
(or/c #f
      (-> input-port? exact-nonnegative-integer?any)
      (cons/c (-> input-port?
                  exact-nonnegative-integer?
                  any/c
                  any)
              any/c))
Like racket-lexer, but with several differences:

procedure

(module-lexer* in offset mode)

  
(or/c string? eof-object?)
(or/c symbol?
      (and/c (hash/c symbol? any/c) immutable?))
(or/c symbol? #f)
(or/c number? #f)
(or/c number? #f)
exact-nonnegative-integer?
(or/c #f
      (-> input-port? any)
      (cons/c (-> input-port?
                  exact-nonnegative-integer?
                  any/c
                  any)
              any/c)
      (struct/c dont-stop
                ((cons/c (-> input-port?
                             exact-nonnegative-integer?
                             any/c
                             any)
                         any/c))))
  in : input-port?
  offset : exact-nonnegative-integer?
  mode : 
(or/c #f
      (-> input-port? any)
      (cons/c (-> input-port?
                  exact-nonnegative-integer?
                  any/c
                  any)
              any/c))
Like module-lexer, except that the attribute result propagated from a language-specific lexer can be a hash table.

Added in version 1.2 of package syntax-color-lib.