1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
/*******************************************************************************
* Copyright (c) 2017 Association Cénotélie (cenotelie.fr)
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this program.
* If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
//! This crate provides the redistributable runtime for Hime-generated parsers
//! It contains the runtime APIs for lexers and parsers generated using [Hime](https://cenotelie.fr/projects/hime).
//! For more information about how to generate parsers using Hime, head to [Hime](https://cenotelie.fr/projects/hime).
//! The code for this library is available on [GitHub](https://github.com/cenotelie/hime).
//! This software is developed by the [Assocation Cénotélie](https://cenotelie.fr/), France.
//!
//! # Usage
//! This crate is [on crates.io](https://crates.io/crates/hime_redist) and can be
//! used by adding `hime_redist` to your dependencies in your project's `Cargo.toml`.
//!
//! ```toml
//! [dependencies]
//! hime_redist = "4.0.0"
//! ```
//!
//! and this to your crate root:
//!
//! ```rust
//! extern crate hime_redist;
//! ```
#![no_std]
#![forbid(unsafe_code)]
#![warn(clippy::pedantic)]
#![allow(clippy::cast_possible_truncation, clippy::module_name_repetitions)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
pub mod ast;
pub mod errors;
pub mod lexers;
pub mod parsers;
pub mod result;
pub mod symbols;
pub mod text;
pub mod tokens;
pub mod utils;
/// The version of this program
pub const CRATE_VERSION: &str = env!("CARGO_PKG_VERSION");
/// The commit that was used to build the application
pub const GIT_HASH: &str = env!("GIT_HASH");
/// The git tag that was used to build the application
pub const GIT_TAG: &str = env!("GIT_TAG");