Create simple calc as test draft

This commit is contained in:
Bartłomiej Pluta
2019-07-10 20:14:05 +02:00
parent 76eabbff0e
commit aefa8e8f3c
5 changed files with 111 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ from enum import Enum
class TokenType(Enum):
DOUBLE_ASTERISK = '**'
OPEN_CURLY = '{'
CLOSE_CURLY = '}'
OPEN_PAREN = '('
@@ -14,7 +15,9 @@ class TokenType(Enum):
ASSIGN = '='
ARROW = '->'
COMMA = ','
SLASH = '/'
MINUS = '-'
PLUS = '+'
DOTS = '...'
AMP = '&'
DOT = '.'