lex 0.11.0

This library aids in parsing programming languages.
Documentation
1
2
3
4
5
6
7
use crate::{Error, ParseContext};

/// The result of parsing an element `T` with error type `E`.
///
/// `Ok(parsed_element, after_parsed_element)`
/// `Err(Error { error_token, typed_error })`
pub type ParseResult<'a, T, E> = Result<(T, ParseContext<'a>), Error<'a, E>>;