Trait pom::Input [] [src]

pub trait Input<T> where T: Copy {
    fn position(&self) -> usize;
    fn current(&self) -> Option<T>;
    fn advance(&mut self);
    fn jump_to(&mut self, position: usize);
    fn segment(&self, start: usize, end: usize) -> Vec<T>;
}

Parser input is generic over terminal type, which is usually u8 or char.

Required Methods

Get current position.

Peek current symbol.

Advance to next symbol.

Jump to specified position.

Get a segment from the input.

Implementors