Describe the bug
When user type incomplete programs, the "check_if(tokens[i + 1])" in sim/simc_parse.py will always overflow, if there is not tokens[i + 1].
The program typed by the use is clearly wrong, but the program should treat this properly.
To Reproduce
Complie this simc code:
test.simc:
Ouput error:
...
File "/home/math-o5/anaconda3/lib/python3.7/site-packages/simc/simc_parser.py", line 673, in check_ptr
if tokens[i].type == "multiply":
IndexError: list index out of range
Expected behavior
A kind message error for user
Desktop (please complete the following information):