rexlang-lexer 3.9.9

Rex: A strongly-typed, pure, implicitly parallel functional programming language
Documentation

Rex Lexer (rexlang-lexer)

This crate tokenizes Rex source into a stream of Tokens with precise Span information.

Entry point

use rex_lexer::Token;

fn main() -> Result<(), rex_lexer::LexicalError> {
    let tokens = Token::tokenize("let x = 1 in x")?;
    let _ = tokens;
    Ok(())
}

Spans

rex_lexer::span provides Position and Span types used throughout the workspace for diagnostics and editor tooling.