Fixed a visual bug in the tokenizer's print_token_list function. Updated the user interface in the main program demo.
This commit is contained in:
@@ -123,6 +123,8 @@ def print_token_list(tokens):
|
||||
if tk.type == token.TokenType.variable:
|
||||
if tk.is_negative_variable:
|
||||
print("-%s " %(tk.value), end = "")
|
||||
else:
|
||||
print("%s " %(tk.value), end ="")
|
||||
else:
|
||||
print("%s " %(tk.value), end = "")
|
||||
print()
|
||||
|
||||
Reference in New Issue
Block a user