#lr #hime #glr #parser #rnglr #text-parser #parse-input

no-std hime_redist

Redistributable runtime library for parsers generated with Hime (LR, RNGLR)

16 stable releases

4.4.0 Jul 31, 2024
4.3.0 Sep 18, 2023
4.2.4 Jul 19, 2023
4.2.0 Oct 26, 2022
3.3.1 Feb 18, 2018

#76 in Algorithms


Used in 3 crates

Apache-2.0

295KB
6K SLoC

Hime Rust Runtime

The Rust implementation of the runtime for lexers and parsers generated with Hime. For more information about how to generate parsers using Hime, head to Hime. The code for this library is available on Github. The API documentation is available on docs.rs. This software is developed by the Assocation Cénotélie, France.

Usage

This crate is on crates.io and can be used by adding hime_redist to your dependencies in your project's Cargo.toml.

[dependencies]
hime_redist = "4.3"

Generated lexer and parser codes will import this crate and provide a simple API to parse input text.

Support for no_std

As of version 4.3.0, this crate supports no_std contexts. This crate has an std feature which is activated by default for retro-compatibility but can deactivated as follow:

[dependencies]
hime_redist = { version = "4.3", default-features = false }

The only dependency of this crate (serde) also does not require std support, and will only use its std feature when the std feature of this crate is activated (which it is by default). De-activating std for this crate also de-activates std for serde.

How can I contribute?

The simplest way to contribute is to:

  • Fork this repository on GitHub.
  • Fix some issue or implement a new feature.
  • Create a merge request on GitHub.

Patches can also be submitted by email, or through the issue management system.

The isse tracker contains tickets that are accessible to newcomers. Look for tickets with [beginner] in the title. These tickets are good ways to become more familiar with the project and the codebase.

License

This software is available under the terms of the Apache License 2.0.

Dependencies

~0.3–0.9MB
~21K SLoC