Module Gramlib.Plexing

Lexing for Camlp5 grammars.

This module defines the Camlp5 lexer type to be used in extensible grammars (see module Grammar). It also provides some useful functions to create lexers.

Lexer type

type 'te lexer_func = ?loc:Loc.t -> char Stream.t -> 'te LStream.t

Returning a stream equipped with a location function

module type S = sig ... end