Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patrickt/flexible-numeric-parsers

Flexible numeric parsers for real-world programming languages’ numeric syntax.
https://github.com/patrickt/flexible-numeric-parsers

Last synced: 2 months ago
JSON representation

Flexible numeric parsers for real-world programming languages’ numeric syntax.

Awesome Lists containing this project

README

        

# flexible-numeric-parsers

[![GitHub CI](https://github.com/patrickt/flexible-numeric-parsers/workflows/CI/badge.svg)](https://github.com/patrickt/flexible-numeric-parsers/actions)
[![Hackage](https://img.shields.io/hackage/v/flexible-numeric-parsers.svg?logo=haskell)](https://hackage.haskell.org/package/flexible-numeric-parsers)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Flexible numeric parsers for real-world programming languages. These parsers accept values such as `100_000_000`, `0B1_1`, and `0xa_bcd_ef0`.

This code was extracted from the [Semantic](http://github.com/github/semantic/) project.

Currently missing support for complex numbers, suffixes indicating signedness/size (`U` and `L` and friends), and hexadecimal floats. If you need the former, file an issue; if you need the latter, then I sure want to know what your use case is.