package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cf/Cf_data_ingest/Create/argument-1-B/index.html
Parameter Create.B
module Form : Cf_scan.Form
The form module for interchange language scanners.
module Scan :
Cf_scan.Profile
with type symbol := symbol
and type position := position
and type 'a form := 'a Form.t
The interchange language scanner module.
val primitive : 'a Cf_type.nym -> 'a Form.t Scan.t
The scanner compiler uses primitive n
to obtain a scanner for the primitive type named by n
.
The scanner compiler uses control s c
to compose a scanner representing the application of control c
to the value recognized by the scanner s
.
The scanner compiler uses start c q
to compose a scanner that recognizes the start of a sequence of kind c
with length limited by q
and produces an abstract frame value annotated with the location of the start in the input stream.
The scanner compiler uses visit c w f v
to compose a scanner that visits with f
every element in a sequence of kind c
in the context w
. The first element is visited with the initializer v
, and each following element is visited with the value returned by the preceding scanner.
The scanner compiler uses finish w
to compose a scanner that recognizes the end of the sequence that started upon producing w
.
The scanner compiler uses pair c k v
to compose a scanner that recognizes a pair of kind c
comprising a first item recognized by k
and a second item recognized by v
.