package orsetto
A library of assorted structured data interchange languages
Install
Dune Dependency
Authors
Maintainers
Sources
r1.1.2.tar.gz
sha512=e260412b2dd0f98cfe3dc7ed5c31a694eb31c93cd207c51fa12675b790234ee0ad3bf07d9be17a4dc266fedfe55b14c967cad7bc0c9414063eef8afd59f3d0d1
doc/orsetto.ucs/Ucs_scan/index.html
Module Ucs_scan
Functional LL(x) parsing of Unicode text with monadic combinators.
Overview
This module specializes the
f_scan
core foundation parser combinator interface for use with Unicode texts. A scanner is a functional left-shift/left-reduce parser combinator, using a state-exception monad over the stream of input code points annotated with their position in the stream.
Interface
module type Profile = sig ... end
The signature of a Unicode scanner module.
module Create (P : Ucs_transport.Profile) : Profile
Use Create(UTF)
to make scanner module for the encoding UTF
.
val create : [< Ucs_transport.id ] -> (module Profile)
Use create utf
to make a scanner module for the UTF-8 encoding corresponding to utf
.