Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nightlark/re2c-python-distributions
pip install re2c. Pre-compiled re2c Python wheels for PyPI.
https://github.com/nightlark/re2c-python-distributions
lexer-generator pypi re2c
Last synced: 2 days ago
JSON representation
pip install re2c. Pre-compiled re2c Python wheels for PyPI.
- Host: GitHub
- URL: https://github.com/nightlark/re2c-python-distributions
- Owner: nightlark
- Created: 2021-11-02T04:43:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T06:57:58.000Z (21 days ago)
- Last Synced: 2024-12-23T07:32:26.972Z (21 days ago)
- Topics: lexer-generator, pypi, re2c
- Language: CMake
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# re2c Python Distributions
[![PyPI Release](https://img.shields.io/pypi/v/re2c.svg)](https://pypi.org/project/re2c)
[re2c](https://re2c.org/) is a free and open-source lexer generator for C, C++, D, Go, Haskell, Java, JS, OCaml, Python, Rust, V and Zig with a focus on generating fast code.
This project packages the `re2c` utility (aliases for other languages such as `re2go` are also provided) as a Python package, enabling `re2c` to be installed from PyPI:
```
pip install re2c
```or used as part of `build-system.requires` in a pyproject.toml file:
```toml
[build-system]
requires = ["re2c"]
```PyPI package versions will follow the `major.minor.patch` version numbers of re2c releases.
Binary wheels for Windows, macOS, and Linux for most CPU architectures supported on PyPI are provided. ARM wheels for Raspberry Pi available at https://www.piwheels.org/project/re2c/.
[re2c PyPI Package Homepage](https://github.com/nightlark/re2c-python-distributions)
[re2c Homepage](https://re2c.org/)
[re2c Source Code](https://github.com/skvadrik/re2c)
[re2c License](https://github.com/skvadrik/re2c/blob/master/LICENSE): Public domain
Installing re2c
===============re2c can be installed by pip with:
```sh
pip install re2c
```or:
```sh
python -m pip install re2c
```Building from the source dist package requires internet access in order to download a copy of the re2c source code.
Using with pipx
===============Using `pipx run re2c ` will run re2c without any install step, as long as the machine has pipx installed (which includes GitHub Actions runners).
Using with pyproject.toml
=========================re2c can be added to the `build-system.requires` key in a pyproject.toml file for building Python extensions that use re2c to generate code.
```toml
[build-system]
requires = ["re2c"]
```