Skip to content

Commit

Permalink
Add TokenValue
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Sep 19, 2024
1 parent 04e55a4 commit 4bf9770
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ pub struct Token {
pub value: String,
}

pub enum TokenValue {
StringValue(String),
IntValue(i64),
DecValue(f64),
VecValue(Vec<TokenValue>),
}

fn is_part_int_numeric(part: &str) -> bool {
let mut chars = part.chars();

Expand Down

0 comments on commit 4bf9770

Please sign in to comment.