Frenetic_netkat.LexBufferSourceA custom lexbuffer that automatically keeps track of the source location. This module is a thin wrapper arounds sedlexing's default buffer, which does not provide this functionality.
type t = {buf : Sedlexing.lexbuf;mutable pos : Lexing.position;mutable pos_mark : Lexing.position;mutable last_char : Core.Uchar.t option;mutable last_char_mark : Core.Uchar.t option;}the lex buffer type
The next four functions are used by sedlex internally. See https://www.lexifi.com/sedlex/libdoc/Sedlexing.html.
location of next character