feat: Add token definitions and lexer logic.

This commit adds the `Token` and `TokenKind` definitions in `src/token.rs`,
in `src/lexer.rs` I've added the `Lexer` logic.
This commit is contained in:
2026-03-11 23:18:05 +01:00
parent 9e4d4085ba
commit 51bd07d313
8 changed files with 426 additions and 6 deletions

View File

@@ -16,12 +16,12 @@ pub fn print_help() {
println!();
println!("{}", "OPTIONS:".bold().yellow());
println!(
" {}, {} Print this help message",
" {}, {} Print this help message",
"-h".bold(),
"--help".bold()
);
println!(
" {}, {} Print version information",
" {}, {} Print version information",
"-V".bold(),
"--version".bold()
);
@@ -34,7 +34,7 @@ pub fn print_help() {
"-c".bold()
);
println!(
" {} {} Write output to <file>",
" {} {} Write output to <file>",
"-o".bold(),
"<file>".bold(),
);
@@ -42,7 +42,7 @@ pub fn print_help() {
println!();
println!("{}", "ARGS:".bold().yellow());
println!(
" {} One or more Flux source files to compile",
" {} One or more source files to compile",
"<file>".bold(),
);
}