Struct moore_common::lexer::StackedLexer [] [src]

pub struct StackedLexer<T> { /* fields omitted */ }

A lexer chaining the tokens of multiple other lexers after another. Lexers can be pushed onto an internal stack and will then be queried for tokens until their respective Eof has been reached. At that point, the lexer is popped off the stack and the next lexer's tokens are produced. An Eof is returned once all lexers have been drained.

Methods

impl<T> StackedLexer<T>
[src]

[src]

[src]

Trait Implementations

impl<T: Clone + PartialEq> Lexer<T> for StackedLexer<T>
[src]

[src]