Define Token type

This commit is contained in:
cdo committed 2026-09-26 09:00:12 +01:00
1 parent ac759a79f9
commit cddbbf2ac9
2 files changed
+13

No files matched your search

+1
View File
@@ -0,0 +1 @@
pub mod token;
+12
View File
@@ -0,0 +1,12 @@
#[derive(Clone, Debug, PartialEq)]
pub enum Token {
Symbol(char),
Integer(i32),
OpenParen,
CloseParen,
Plus,
Minus,
Times,
Divide,
Caret,
}