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
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.
The text was updated successfully, but these errors were encountered:
In line 16 of the
StringInputter.java
file, I state that there is a bug where theKleinScanner
will skip the last token of a file. This is due to the face that thethis.input.hasNext()
function withinKleinScanner
will be false once thegenerateToken()
function reaches the end of file, and theEOF
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.The text was updated successfully, but these errors were encountered: