mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2025-09-24 23:41:30 +02:00
lang: some small, unfinished stuff
This commit is contained in:
parent
b6e304fa78
commit
8d7401531e
3 changed files with 13 additions and 20 deletions
|
@ -10,6 +10,10 @@ pub enum Token<'a> {
|
|||
// so a declaration needs the keyword def until i can figure this out
|
||||
#[token("def")]
|
||||
Def,
|
||||
#[token("let")]
|
||||
Let,
|
||||
#[token("in")]
|
||||
In,
|
||||
#[regex("[a-zA-Z0-9_\\-]+", |lex| lex.slice())]
|
||||
Word(&'a str),
|
||||
#[regex("\\$[a-zA-Z0-9_\\-]+", |lex| &lex.slice()[1..])]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue