next up previous contents
Next: Module Quotation: quotation operations Up: Camlp4 library modules Previous: Module Pcaml: language grammar,

Module Plexer: lexical analyzer

 

val make : unit -> Token.lexer;;

Some lexer provided. See the module Token. The tokens returned follow the Objective Caml and the righteous lexing rules. The meaning of the tokens are:
* Tterm s is the keyword s.
* Tlident s is the identifier s starting with a lowercase letter.
* Tuident s is the identifier s starting with an uppercase letter.
* Tint s is an integer constant whose string source is s.
* Tfloat s is a float constant whose string source is s.
* Tstring s is the string constant s.
* Tchar c is the character constant c.
* Tquotation t s is a quotation named t holding the string s.
* Tantiquot t s is an antiquotation named t holding the string s.
* Tlocate i s is a location directive at position i holding s.
* Teoi is the end of input. The lexer do not use global (mutable) variables: instantiations of Plexer.make () do not perturb each other.



Daniel de Rauglaudre
9/1/1998