package orsetto
A library of assorted structured data interchange languages
Install
dune-project
Dependency
Authors
Maintainers
Sources
r1.0.tar.gz
sha256=585297372d7f6cfb830214e9ef22d6d072a39b2a1591ef90f1ee2bcfe144cad3
md5=6bb6a7ba88bf2c7595a0b332921e60b4
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 ... endThe signature of a Unicode scanner module.
module Create (UTF : Ucs_transport.Profile) : ProfileUse 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.