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 e98972f..aa2d107 100644
--- a/lexer.py
+++ b/lexer.py
@@ -46,6 +46,7 @@ class TokenType(Enum):
# flow
IF = auto()
FOR_COUNT = auto()
+ PIPE = auto()
# keywords
DEF = auto()
@@ -70,6 +71,7 @@ keywords = {
"or": TokenType.OR,
"if": TokenType.IF,
"for-count": TokenType.FOR_COUNT,
+ "|": TokenType.PIPE,
"def": TokenType.DEF,
"lambda": TokenType.LAMBDA }