Previous: , Up: silex   [Index]


53.8 Utility functions

The following bindings are exported by the (vicare parser-tools silex utilities) library.

Function: make-max-count-lexer lexer max-number-of-tokens error-handler

Return a lexer function wrapping lexer; if the number of returned tokens reaches max-number-of-tokens: the thunk error-handler is invoked.