Skip to content

Commit bfd6bb2

Browse files
committed
Update lexer to ingore \r
1 parent f3f249d commit bfd6bb2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from tokens import Token, TokenType
22

3-
WHITESPACE = ' \n\t'
3+
WHITESPACE = ' \n\t\r'
44
DIGITS = '0123456789'
55

66
class Lexer:

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
interpreter = Interpreter()
1414
value = interpreter.visit(tree)
1515
print(value)
16+
1617
except Exception as e:
1718
print(e)

0 commit comments

Comments
 (0)