package orsetto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Use Create(B) to specialize the number scanner according to B.

Parameters

module B : Basis

Signature

val special : 'r ctrl -> 'r B.form B.Scan.t

Use special ctrl to make a scanner that recognizes input and returns a result according to ctrl.

val signed_int : int B.form B.Scan.t

The integer scanner. Recognizes an OCaml integer in decimal format without any leading zeros.

val signed_int32 : int32 B.form B.Scan.t

The 32-bit integer scanner. Recognizes a 32-bit integer in decimal format without any leading zeros.

val signed_int64 : int64 B.form B.Scan.t

The 64-bit integer scanner. Recognizes a 64-bit integer in decimal format without any leading zeros.

val signed_native : nativeint B.form B.Scan.t

The native integer scanner. Recognizes a native system integer in decimal format without any leading zeros.

val simple_float : float B.form B.Scan.t

The simple floating point number scanner. Recognizes an OCaml floating point number without any exponent part, i.e. a simple integer part without leading zeros, optionally followed by a decimal point and a fraction part.

val scientific_float : float B.form B.Scan.t

The scientific notation floating point number scanner. Recognizes an OCaml floating point number that may be in scientific notation, i.e. an integer part, optional followed by a decimal point and a fraction part, optionally followed again by an exponent part.