1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#[derive(PartialEq, Debug, Clone)] pub enum Category { Whitespace, Identifier, Keyword, Brace, Bracket, Parenthesis, AssignmentOperator, Integer, Float, String, Boolean, Text, } #[derive(PartialEq, Debug, Clone)] pub struct Token { pub lexeme: String, pub category: Category, }