frostwalker/src/lib.rs

33 lines
394 B
Rust
Raw Normal View History

#[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,
}
2024-01-15 22:59:02 +00:00
pub mod lexer;
pub mod validator;
pub mod formatter;
2024-01-15 22:59:02 +00:00
#[cfg(test)]
2024-01-16 20:31:41 +00:00
mod lexer_tests;
#[cfg(test)]
mod validator_tests;
#[cfg(test)]
mod formatter_tests;