You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, invalid code will not be tested. The lexer and parser are already written for you as well, so however it handles invalid input is good enough. The only functions you should have to complete are Compile and Interpret. As there should be no invalid code constructs from the input, it should be fine to just error out.
How should we handle the syntax error? Would the behaviour be undefined or do we need to exit the programme with a message like
syntax error
?Would the testbench test on code that is syntactically correct but has invalid grammar?
The text was updated successfully, but these errors were encountered: