Skip to content

Commit

Permalink
Remove unnecessary tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
veera-sivarajan committed Sep 10, 2023
1 parent 6d96c31 commit 9469635
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ static KEYWORDS: phf::Map<&'static str, TokenType> = phf_map! {
"for" => TokenType::For,
"fn" => TokenType::Fn,
"if" => TokenType::If,
"nil" => TokenType::Nil,
"println" => TokenType::Print,
"return" => TokenType::Return,
"true" => TokenType::Boolean(true),
Expand Down Expand Up @@ -75,7 +74,6 @@ pub enum TokenType {
Print,
Let,
Mutable,
Nil,
If,
Else,
While,
Expand Down Expand Up @@ -120,7 +118,6 @@ impl std::fmt::Display for TokenType {
StringLiteral(lexeme) => write!(f, "{lexeme}"),
Print => write!(f, "keyword print"),
Let => write!(f, "keyword Let"),
Nil => write!(f, "keyword nil"),
If => write!(f, "keyword if"),
Else => write!(f, "keyword else"),
While => write!(f, "keyword while"),
Expand Down

0 comments on commit 9469635

Please sign in to comment.