parser works for var decl with assignment
This commit is contained in:
parent
6756d286f9
commit
8ce2b5aad2
6 changed files with 139 additions and 124 deletions
|
|
@ -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())]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue