#![allow(clippy::missing_errors_doc)]
#![doc = include_str!("../README.md")]
extern crate self as typeward;
#[cfg(feature = "macros")]
pub use typeward_macros::Parse;
#[cfg(feature = "serde")]
#[doc(hidden)]
pub mod __private {
pub use serde::{Deserialize, Serialize};
}
macro_rules! for_all_tuples {
($exp:tt) => {
$exp!(A, B);
$exp!(A, B, C);
$exp!(A, B, C, D);
$exp!(A, B, C, D, E);
$exp!(A, B, C, D, E, F);
$exp!(A, B, C, D, E, F, G);
$exp!(A, B, C, D, E, F, G, H);
$exp!(A, B, C, D, E, F, G, H, I);
$exp!(A, B, C, D, E, F, G, H, I, J);
$exp!(A, B, C, D, E, F, G, H, I, J, K);
};
}
pub mod collections;
pub mod combinators;
pub mod error;
pub mod input;
pub mod literals;
pub mod parse;
pub mod primitives;
pub mod token;
pub mod prelude {
pub use crate::collections::*;
pub use crate::combinators::*;
pub use crate::error::{ParseError, ParseResult, SourceSpan};
pub use crate::input::{
BorrowInput, FromInputStr, Input, ReadInput, ReadInputBuf, ReadInputStream,
ReadInputStreamInput,
};
pub use crate::literals::*;
pub use crate::parse::{
Parse, ParseExt, ParseOffsetContext, ParseOffsetInput, Unpack, Unpackable, parse_complete,
parse_complete_input, parse_complete_input_spanned, parse_complete_spanned,
};
pub use crate::primitives::prelude::*;
pub use crate::token::Token;
pub use crate::{and, and_is, new_and, or, or_match};
#[allow(deprecated)]
pub use crate::unpack_and;
#[cfg(feature = "macros")]
pub use typeward_macros::Parse;
}