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

StringInputter Last Token Issue #1

Open
coswald opened this issue Sep 13, 2017 · 0 comments
Open

StringInputter Last Token Issue #1

coswald opened this issue Sep 13, 2017 · 0 comments
Assignees

Comments

@coswald
Copy link
Owner

coswald commented Sep 13, 2017

In line 16 of the StringInputter.java file, I state that there is a bug where the KleinScanner will skip the last token of a file. This is due to the face that the this.input.hasNext() function within KleinScanner will be false once the generateToken() function reaches the end of file, and the EOF token is generated instead of the last token. Presently, there is a dirty fix that just extends the program by a single whitespace character, and this solves the issue. However, I would like a better solution.

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

No branches or pull requests

1 participant