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/Create/argument-1-B/Buffer/index.html

Module B.Buffer

The lexical buffer module.

type t

The type of a buffer.

val create : unit -> t

Scanners use create () to make a buffer.

val reset : t -> unit

Scanners use reset b to reset b to contain an empty lexeme.

val advance : t -> symbol -> unit

Scanners use advance b c to append c to b.

val lexeme : t -> lexeme

Scanners use lexeme b to extract the lexeme from b.

OCaml

Innovation. Community. Security.