andrenth / ocaml-stdint

Various signed and unsigned integers for OCaml
Other
85 stars 16 forks source link

ppx extension for literals #24

Open vzaliva opened 6 years ago

vzaliva commented 6 years ago

It would be nice to have a ppx extension which would provide a way to use literals. It is clumsy to write things like Int32.of_string "0xffffffff"

Firobe commented 3 years ago

I had the same need and wrote a small PPX rewriter to do just that