frostwalker/src/lib.rs

32 lines
394 B
Rust

#[derive(Debug)]
#[derive(PartialEq)]
pub struct Token {
pub class: Class,
pub value: Option<String>,
}
#[derive(Debug)]
#[derive(PartialEq)]
pub enum Class {
IDENTIFIER,
SEPARATOR,
EQUALS,
LITERAL,
NEWLINE,
BOOLEAN,
UNKNOWN,
}
pub mod lexer;
pub mod validator;
pub mod formatter;
#[cfg(test)]
mod lexer_tests;
#[cfg(test)]
mod validator_tests;
#[cfg(test)]
mod formatter_tests;