package orsetto

  1. Overview
  2. Docs
A library of assorted structured data interchange languages

Install

Dune Dependency

Authors

Maintainers

Sources

r1.0.tar.gz
sha256=585297372d7f6cfb830214e9ef22d6d072a39b2a1591ef90f1ee2bcfe144cad3
md5=6bb6a7ba88bf2c7595a0b332921e60b4

doc/orsetto.cf/Cf_lex_scan/index.html

Module Cf_lex_scan

Functional lexical analyzers.

Overview

This module implements functional combinators for parsing languages that comprise sequences of regular tokens recognized by a deterministic finite automaton, using the

f_regx

module.

Interface
module type Buffer = sig ... end

Define a module with this signature to represent an imperative interface to a buffer that appends symbols in sequence until a lexeme is recognized.

module type Basis = sig ... end

Define a module with this signature to specialize the lexical analyzer.

module type Profile = sig ... end

The signature of a lexical analyzing scanner.

module Create (B : Basis) : Profile with type symbol := B.symbol and type lexeme := B.lexeme and type 'a t := 'a B.Scan.t and type 'a form := 'a B.form

Use Create(B) to make a lexical analyzing scanner.

module ASCII : Profile with type symbol := char and type lexeme := string and type 'a t := 'a Cf_scan.ASCII.t and type 'a form := 'a

A distinguished lexical analyzer for simple ASCII character symbols.

OCaml

Innovation. Community. Security.