Skip to content

Commit

Permalink
Add Rotate Left, Rotate Right and Exclusive NAND
Browse files Browse the repository at this point in the history
LunaStev committed Nov 15, 2024

Verified

This commit was signed with the committer’s verified signature.
Shion1305 Shion Ichikawa
1 parent f0ecd51 commit 8ef31e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lexer.rs
Original file line number Diff line number Diff line change
@@ -29,6 +29,9 @@ pub enum TokenType {
CONDITIONAL, // ?:
IN, // in
IS, // is
ROL,
ROR,
XNAND,
IDENTIFIER(String),
STRING(String),
NUMBER(i64),
@@ -382,6 +385,9 @@ impl<'a> Lexer<'a> {
"for" => TokenType::FOR,
"in" => TokenType::IN,
"is" => TokenType::IS,
"rol" => TokenType::ROL,
"ror" => TokenType::ROR,
"xnand" => TokenType::XNAND,
"import" => TokenType::IMPORT,
"return" => TokenType::RETURN,
"continue" => TokenType::CONTINUE,

0 comments on commit 8ef31e5

Please sign in to comment.