package orsetto
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=81283687ce3204263bc955a332dd7b90bf5b648a990c01160f33aaa77d80962f
md5=7346293aa013c2a8974c6fb7c521166a
doc/orsetto.cf/Cf_lex_scan/ASCII/DFA/index.html
Module ASCII.DFA
The regular syntax terms.
val nil : termThe empty term, representing no events.
val one : char -> termUse one v to make a term representing the single occurrence of v.
val sat : (char -> bool) -> termUse sat f to make a term representing any event that satisfies the predicate f.
Use cats s to make a term representing the concatenation of all the terms of s in sequential order.
Use alt2 a b to make a term representing the occurrence of either a or b.
Use alts s to make a term representing the occurrence of any of the alternatives in s.
Use star t to make a term representing the Kleene star of t, i.e. zero, one or more occurrences of t.
Use seq t to make a term representing a sequence of occurrences of t.
If ~a is used, then it specifies the minimum number of occurrences in the recognized sequence. If ~b is used then it specifies the maximum number of occurrences in the recognized sequence. Composition raises Invalid_argument if a < 0 or b < a.