Added support for negative variables in the tokenizer and ptoken object.

This commit is contained in:
2020-04-26 18:17:40 -05:00
parent 350021a42b
commit dcf8a50f34
3 changed files with 20 additions and 8 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
class Token:
def __init__(self, value, type):
def __init__(self, value, type, is_negative_variable = False):
self.value = value
self.type = type
self.is_negative_variable = is_negative_variable
class TokenType:
add = 0