diff --git a/src/lexer.rs b/src/lexer.rs index e7f3e23..8c52215 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -289,7 +289,6 @@ impl<'t> Lexer<'t> { let token = self.produce(TKind::Identifier); Ok(Token { kind: match lexeme { - "and" => TKind::And, "as" => TKind::As, "break" => TKind::Break, "const" => TKind::Const, @@ -308,7 +307,6 @@ impl<'t> Lexer<'t> { "match" => TKind::Match, "mod" => TKind::Module, "mut" => TKind::Mut, - "or" => TKind::Or, "pub" => TKind::Public, "return" => TKind::Return, "static" => TKind::Static, diff --git a/src/token.rs b/src/token.rs index 03e38c6..5f5d6df 100644 --- a/src/token.rs +++ b/src/token.rs @@ -64,7 +64,6 @@ pub enum TKind { Comment, // Line or block comment Doc, // Doc comment - And, As, Break, Const, @@ -83,7 +82,6 @@ pub enum TKind { Match, Module, Mut, - Or, Public, Return, Static,