Skip to content

cryptosense/ppx_ulong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

ppx_ulong

A ppx rewriter for integers' Unsigned.ULong literals

Syntax

ppx_ulong transforms literals with the u suffix to an Unsigned.ULong.t value.

It turns:

10u

into:

Unsigned.ULong.of_int64 10L

0x, 0o and 0b notations are supported as well as _. If the literal isn't a representable ulong value, it won't wrap it but will raise an ocaml.error.

About

A ppx rewriter for integers' Unsigned.ULong literals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages