package ppx_optint

  1. Overview
  2. Docs
Literals for Optint integers

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_optint-0.2.0.tbz
sha256=3405fe515e1260d4c4cef2eb083f3da6d0a0145225152ca54212d60fc1d78a25
sha512=fdfab61145d1838eac7faeda89e3febdab879a26d9dc2f855bacabb0cea692b0fc80fca23c847929a3e5f5f82f3842ed991dbec4ddc09ba6ba723462ae982580

Description

Tags

ppx optint

Published: 18 Sep 2023

README

ppx_optint

A ppx for [Optint.t][optint] and [Optint.Int63.t][optint] integer literals. If the integer literal ends in i it is interpreted as a Optint.t while for I it is interpreted as a Optint.Int63.t.

# 1i;;
- : Optint.t = 1
# Optint.add 1023i 1i;;
- : Optint.t = 1024
# -1I;;
- : Optint.Int63.t = -1
# 4611686018427387903I;;
- : Optint.Int63.t = 4611686018427387903

optint

Dependencies (4)

  1. ppxlib >= "0.7.0"
  2. optint >= "0.1.0"
  3. dune >= "3.5"
  4. ocaml

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.