-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG REPORT] Print error message: A case where the the check_if will always overflow #361
Comments
Yeah currently it just expects something to be there, there should be an index out of range check too in check_if. |
Passing the index as argument and processing check_if only if the index is in range will fix this. |
I would like to work on this @frankhart2018. |
@jigyasudhingra All yours. :) |
your list is empty and you are trying to compare its index type, but your list is empty so that it is giving the output like that. |
Do you want to work in this @ami-harry |
@frankhart2018 yes. I want to work |
Sure assigning this to you too @ami-harry. |
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:
Expected behavior
A kind message error for user
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: