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

19 lines
286 B
Rust
Raw Normal View History

2024-08-04 00:23:52 +00:00
use crate::Identifier;
#[derive(Debug, PartialEq, Clone)]
pub enum Token {
2024-08-05 01:31:18 +00:00
Comma,
2024-08-05 18:31:08 +00:00
Dot,
2024-08-04 00:23:52 +00:00
Eof,
Equal,
Identifier(Identifier),
2024-08-05 00:08:43 +00:00
Integer(i64),
2024-08-04 00:23:52 +00:00
Plus,
Star,
LeftParenthesis,
RightParenthesis,
2024-08-05 01:31:18 +00:00
LeftSquareBrace,
RightSquareBrace,
2024-08-04 23:41:00 +00:00
Float(f64),
2024-08-04 00:23:52 +00:00
}