-
Notifications
You must be signed in to change notification settings - Fork 0
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
Compiler goes into loop when encountering special characters #8
Labels
Comments
|
|
Issue is probably related to the parse_statement function: while loop_control:
self.__parse_identifier_statement()
self.__parse_return_statement()
self.__parse_loop_control_statements(Tag.BREAK)
self.__parse_loop_control_statements(Tag.CONTINUE)
self.__parse_while_statement()
self.__parse_if_statement()
if self.__lookahead(Tag.FUNC):
self.__parse_block()
elif self.__lookahead('}'):
loop_control = False We don't throw an Syntax error or exit the loop, when something else than expected is in the token_stream |
What do you mean with strings without anything? |
philippwiesner
added
bug
Something isn't working
enhancement
New feature or request
labels
Jun 5, 2020
Thats what I mean by "without anything" |
FYI: This compiles
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When starting a line with # or @ the compiler should throw an error,
instead it only loops
The text was updated successfully, but these errors were encountered: