Skip to content

Commit

Permalink
update lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
victorteokw committed Dec 16, 2024
1 parent d675f90 commit 0a87edd
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/lexer/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,39 @@ enum Token {
#[token("native")]
Native,

#[token("where")]
Where,

#[token("+")]
Plus,

#[token("-")]
Minus,

#[token("*")]
Star,

#[token("/")]
Slash,

#[token("%")]
Percent,

#[token("^")]
Caret,

#[token("&")]
Ampersand,

#[token("|")]
Pipe,

#[token("!")]
Bang,

#[token("?")]
Question,

#[token(".")]
Period,

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pub mod fsutil;
pub mod lexer;
pub mod parser;
1 change: 1 addition & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod parser;
Empty file added src/parser/parser.rs
Empty file.

0 comments on commit 0a87edd

Please sign in to comment.