An OCaml lexer generator for Unicode
Browse cluster: OCaml Systems and Utilities →sedlex is a Unicode-friendly lexer generator for OCaml, built with OCaml and the PPX (parse tree rewriting) technology. Unlike the standard ocamllex tool, sedlex embeds lexer specifications directly in OCaml source files and operates on streams of Unicode codepoints rather than bytes, supporting arbitrary input encodings. The project was originally written by Alain Frisch at LexiFi and is now maintained as part of the ocaml-community repositories; it is licensed under the MIT license and succeeds the earlier ulex project by replacing Camlp4 syntax extensions with OCaml's PPX infrastructure.