1
0
dust/dust-lang/src/token.rs

15 lines
222 B
Rust
Raw Normal View History

2024-08-04 00:23:52 +00:00
use crate::Identifier;
#[derive(Debug, PartialEq, Clone)]
pub enum Token {
Eof,
Equal,
Identifier(Identifier),
2024-08-04 23:28:28 +00:00
Number(i64),
2024-08-04 00:23:52 +00:00
Plus,
Star,
LeftParenthesis,
RightParenthesis,
2024-08-04 23:41:00 +00:00
Float(f64),
2024-08-04 00:23:52 +00:00
}