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 := B.symbol and type term := DFA.term and type 'r fin := 'r DFA.fin
val (!:) : B.symbol -> DFA.term

Use !: event as one event.

val (!^) : (B.symbol -> 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 -> B.lexeme B.form B.Scan.t

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

val ($$>) : string -> (B.lexeme B.form -> 'a) -> 'a rule

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

OCaml

Innovation. Community. Security.