Add optional semicolon at the end of statements and move loop parser from factor to expression (change precedence)

This commit is contained in:
Bartłomiej Pluta
2019-07-15 20:17:40 +02:00
parent 2737139962
commit 79a7b8bb1d
7 changed files with 90 additions and 67 deletions

View File

@@ -12,6 +12,7 @@ class TokenType(Enum):
CLOSE_SQUARE = ']'
OPEN_ANGLE = '<'
CLOSE_ANGLE = '>'
SEMICOLON = ';'
ASTERISK = '*'
ASSIGN = '='
ARROW = '->'