Skip to content
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

One line comment is broken in jlox #7

Open
minatalaat070 opened this issue Feb 5, 2021 · 1 comment
Open

One line comment is broken in jlox #7

minatalaat070 opened this issue Feb 5, 2021 · 1 comment

Comments

@minatalaat070
Copy link

minatalaat070 commented Feb 5, 2021

In case the script starts with one line comment the interpreter breaks

Screenshot_2021-02-05_22-56-07

It works if it's not the first line in the script

Screenshot_2021-02-05_23-04-10

The bug also happens in the REPL mode and produce the same message

Screenshot_2021-02-05_23-01-55

@minatalaat070
Copy link
Author

I'm not sure if it's for the same reason the same behavior occurs in the multi-line comment so i didn't include it in the issue or created a separate issue, I'll leave it up to you to investigate.
Screenshot_2021-02-05_23-16-33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant