Module oursh::program::posix::lex[][src]

Expand description

Custom LALRPOP lexer for tokenizing the input stream.

use oursh::program::posix::lex::Lexer;

for span in Lexer::new("ls -la | wc") {
    let (start, token, end) = span.unwrap();
    println!("{:?}", token);
}

Structs

A lexer to feed the parser gernerated by LALRPOP.

Enums

A lexer error.

Every token in the langauge, these are the terminals of the grammar.

Type Definitions

A result type wrapping a token with start and end locations.