package orsetto

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

The signature of a general number scanner module.

type +'a form

The input type of the scanner form.

type +'a t

The input type of the basic scanner.

val special : 'r ctrl -> 'r form t

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

val signed_int : int form t

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

val signed_int32 : int32 form t

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

val signed_int64 : int64 form t

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

val signed_native : nativeint form t

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

val simple_float : float form 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 form 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.