This commit is contained in:
Yann Ahlgrim
2026-05-07 10:22:48 +02:00
parent ac4d512a79
commit 68bf2f4288
6 changed files with 66 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
struct Token {
type_: String,
literal: String,
}
const ILLEGAL: &str = "ILLEGAL";
const EOF: &str = "EOF";
const IDENT: &str = "IDENT";
const INT: &str = "INT";
const ASSIGN: &str = "=";
const PLUS: &str = "+";
const COMMA: &str = ",";
const SEMICOLON: &str = ";";
const LPAREN: &str = "(";
const RPAREN: &str = ")";
const LBRACE: &str = "{";
const RBRACE: &str = "}";
const FUNCTION: &str = "FUNCTION";
const LET: &str = "LET";