package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

rocq-9.0.0.tar.gz
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be

doc/rocq-runtime.interp/NumTok/Unsigned/index.html

Module NumTok.UnsignedSource

Sourcetype t
Sourceval equal : t -> t -> bool
Sourceval is_nat : t -> bool
Sourceval to_nat : t -> string option
Sourceval sprint : t -> string
Sourceval print : t -> Pp.t

sprint and print returns the number as it was parsed, for printing

Sourceval parse : (unit, char) Gramlib.Stream.t -> t

Parse a positive Rocq number. Precondition: the first char on the stream is already known to be a digit ([0-9]). Precondition: at least two extra chars after the number to parse.

The recognized syntax is:

  • integer part: [0-9][0-9_]*
  • fractional part: empty or .[0-9_]+
  • exponent part: empty or [eE][+-]?[0-9][0-9_]* or
  • integer part: 0[xX][0-9a-fA-F][0-9a-fA-F_]*
  • fractional part: empty or .[0-9a-fA-F_]+
  • exponent part: empty or [pP][+-]?[0-9][0-9_]*
Sourceval parse_string : string -> t option

Parse the string as a non negative Rocq number, if possible

Sourceval classify : t -> num_class
OCaml

Innovation. Community. Security.