parser works for var decl with assignment

This commit is contained in:
LunarAkai 2025-08-08 20:02:54 +02:00
commit 8ce2b5aad2
6 changed files with 139 additions and 124 deletions

View file

@ -3,7 +3,7 @@ use std::fmt;
use logos::{Logos};
#[derive(Logos, Debug, Clone, PartialEq)]
#[regex(r"[ \t\f]+", logos::skip)]
#[regex(r"[\t\f]+", logos::skip)]
pub enum Token {
// Identifier
#[regex(r"[a-zA-Z_][a-zA-Z0-9_]*", |lex| lex.slice().to_owned())]