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