First version with all variables calculated in a token list. 'Factor Engine' starts here.
This commit is contained in:
@@ -82,3 +82,8 @@ def replace_variables(tokens, new_constants):
|
||||
newTokenList.append(token.Token(t.value, t.type))
|
||||
|
||||
return newTokenList
|
||||
|
||||
def print_token_list(tokens):
|
||||
for tk in tokens:
|
||||
print(tk.value, end = "")
|
||||
print()
|
||||
|
||||
Reference in New Issue
Block a user