use crate;
use CombinatorError;
/// Asserts that the input is at the end of the input.
///
/// # Examples
///
/// ```rust
/// # use kamo::parser::{
/// # prelude::*, CombinatorError, code, Input, Position
/// # };
/// let mut parser = eof;
///
/// assert_eq!(parser.parse("".into()), Ok(("", Input::from(""))));
/// assert_eq!(parser.parse("a".into()), Err(ParseError::new(
/// Position::new(0, 1, 1),
/// code::ERR_NOT_EOF,
/// CombinatorError::Eof
/// )));
/// ```