token: reserve "and", "or", "in" as keywords

This commit is contained in:
2025-10-16 01:37:24 -04:00
parent b5d552376e
commit f47de24cfb
2 changed files with 6 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ impl std::fmt::Display for Lexeme {
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TKind {
Comment,
And,
As,
Break,
Const,
@@ -65,11 +66,13 @@ pub enum TKind {
Fn,
For,
If,
In,
Let,
Loop,
Macro,
Match,
Module,
Or,
Public,
Return,
Struct,