Module UTF8LexerStateImpl

module UTF8LexerStateImpl: sig .. end
Implementation of lexer states over UTF8 strings based on the Camomile library (available at http://camomile.sourceforge.net).

One is advised to use the Utils.lexer_state class instead of this one.


type error = 
| End_of_lexer
| Invalid_consume of char * char
exception Exception of error
val string_of_error : error -> string
class t : UTF8Impl.t -> object .. end

This class encapsulates the state of a lexer over the UTF8 string that is passed at instance creation (essentially an index over the string). The next character being read is the first one of the UTF8 string passed at instance creation (unless it is empty).