package orsetto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module contains useful affix operators.

Include the affix operators for the DFA module.

include Cf_dfa.Affix with type event := Uchar.t and type term := DFA.term and type 'r fin := 'r DFA.fin
val (!:) : Uchar.t -> DFA.term

Use !: event as one event.

val (!^) : (Uchar.t -> bool) -> DFA.term

Use !^ f as sat f.

val (!?) : DFA.term -> DFA.term

Use !? term as opt term

val (!*) : DFA.term -> DFA.term

Use !* term as star term

val (!+) : DFA.term -> DFA.term

Use !+ term as seq ~a:1 term

val ($|) : DFA.term -> DFA.term -> DFA.term

Use a $| b as alt2 a b

val ($&) : DFA.term -> DFA.term -> DFA.term

Use a $& b as cat2 a b

val ($=) : DFA.term -> 'r -> 'r DFA.fin

Use term $= v as fin term v

val (!$) : string -> DFA.term

Use !$ s as string_to_term s.

val (?$$) : string -> Ucs_text.t S.Annot.form S.t

Use ?$$ s as simple (string_to_form s).

val ($$>) : string -> (Ucs_text.t S.Annot.form -> 'a) -> 'a rule

Use t $$> f as rule (string_to_form s) f.

OCaml

Innovation. Community. Security.