mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2025-10-29 16:47:56 +01:00
started work on typed pipelines
This commit is contained in:
parent
b6b8c5085a
commit
414b6c927d
5 changed files with 109 additions and 12 deletions
|
|
@ -7,7 +7,7 @@ pub enum Token<'a> {
|
|||
Word(&'a str),
|
||||
#[regex("[\\d]+", priority = 2, callback = |lex| lex.slice().parse::<i64>().unwrap())]
|
||||
IntLiteral(i64),
|
||||
#[regex("[\\d]+.[\\d]+", |lex| lex.slice().parse::<f64>().unwrap())]
|
||||
#[regex("[\\d]+\\.[\\d]+", |lex| lex.slice().parse::<f64>().unwrap())]
|
||||
FloatLiteral(f64),
|
||||
#[regex(r#""([^"\\]|\\["\\bnfrt]|u[a-fA-F0-9]{4})*""#, |lex| lex.slice().to_owned())]
|
||||
StringLiteral(String),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue