Module Ben.Lexer

Lexing rules

val token : Stdlib.Lexing.lexbuf -> Parser.token

Tokenizer for Benl_parser.

val stanza_fold : ?keep:(string -> bool) -> (Stanza.t -> 'a -> 'a) -> Stdlib.Lexing.lexbuf -> 'a -> 'a

stanza_fold f lexbuf accu iterates f over all stanzas of lexbuf, using accu as accumulator. Only the fields whose lowercase name satisfies keep (all by default) are stored; the others are skipped while lexing.