Skip to main content

dar_core/
token.rs

1// crates/dar-core/src/token.rs
2#[derive(Debug, Clone, PartialEq)]
3pub enum Token {
4    KeywordText,
5    KeywordPrint,
6    KeywordExternal,
7    KeywordMod,
8    KeywordLua,
9    Identifier(String,),
10    StringLiteral(String,),
11    Empty,
12    Upper,
13    LParen,
14    RParen,
15    LBrace, // {
16    RBrace, // }
17    Comma,  // ,
18    Colon,  // :
19    Dot,
20    Equal,
21    Eof,
22}