aboutsummaryrefslogtreecommitdiff
path: root/lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.py')
-rw-r--r--lexer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer.py b/lexer.py
index 5be76c6..e98972f 100644
--- a/lexer.py
+++ b/lexer.py
@@ -45,6 +45,7 @@ class TokenType(Enum):
# flow
IF = auto()
+ FOR_COUNT = auto()
# keywords
DEF = auto()
@@ -68,6 +69,7 @@ keywords = {
"and": TokenType.AND,
"or": TokenType.OR,
"if": TokenType.IF,
+ "for-count": TokenType.FOR_COUNT,
"def": TokenType.DEF,
"lambda": TokenType.LAMBDA }