Merged interactive code to the main program for an upcoming demo, will be reverted back after all that.

This commit is contained in:
2020-04-20 02:13:01 -05:00
parent 7507db75b3
commit 53f3058194
4 changed files with 120 additions and 18 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ def get_tokens_from_expression_string(expression_string):
for i in range(0, len(expression_string)):
c = expression_string[i]
if c == '.' or c.isdigit():
if tmp.count('.') == 1:
raise SyntaxError("Invalid grammar, to many periods in number. Found at position " + str (i) + ".")
#if tmp.count('.') == 1:
#raise SyntaxError("Invalid grammar, to many periods in number. Found at position " + str (i) + ".")
if len(tokens) > 1:
lookBehind = tokens[-1]
if lookBehind.type == token.TokenType.exp_end: