From 4bf9770d4df46310ce2ccd19ed932b5642ce37bc Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 19 Sep 2024 01:25:15 -0700 Subject: [PATCH] Add TokenValue --- src/lexer.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lexer.rs b/src/lexer.rs index c6b0800..dfd0424 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -157,6 +157,13 @@ pub struct Token { pub value: String, } +pub enum TokenValue { + StringValue(String), + IntValue(i64), + DecValue(f64), + VecValue(Vec), +} + fn is_part_int_numeric(part: &str) -> bool { let mut chars = part.chars();