Merged interactive code to the main program for an upcoming demo, will be reverted back after all that.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user