Skip to content

StringInputter Last Token Issue #1

@coswald

Description

@coswald

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions