package orsetto
A library of assorted structured data interchange languages
Install
dune-project
Dependency
Authors
Maintainers
Sources
r1.1.2.tar.gz
sha512=e260412b2dd0f98cfe3dc7ed5c31a694eb31c93cd207c51fa12675b790234ee0ad3bf07d9be17a4dc266fedfe55b14c967cad7bc0c9414063eef8afd59f3d0d1
doc/orsetto.ucs/Ucs_lex_scan/Create/index.html
Module Ucs_lex_scan.Create
Use Create(S)
to make a lexical analyzer for the Unicode scanner S
.
Parameters
module S : Ucs_scan.Profile
Signature
module DFA : Cf_dfa.Regular with type event := Uchar.t
The regular syntax terms.
val string_to_term : string -> DFA.term
Use string_to_term s
to make a DFA term that represents the regular expression denoted by s
.
val simple : DFA.term -> Ucs_text.t S.Annot.form S.t
Use simple t
to make a scanner that produces lexemes matching t
.
val rule : DFA.term -> (Ucs_text.t S.Annot.form -> 'a) -> 'a rule
Use rule t f
to make a rule to apply lexemes that match t
to the production function f
to make the value produced by the analyzer.
Use analyze s
to make a lexical analyzing scanner that produces the annotated value from the first rule in s
that matches the longest lexeme accepted by the DFA.
module Affix : sig ... end
This module contains useful affix operators.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page