Create a new instance of a StringReader for the given string. The reader starts at position 0 (the beginning of the string).
The string this reader should operate uppon.
The current index where the reader is at.
The string given to the reader.
Private
wordThe regexp used to detect when a word ends
Private
isReturns whether or not the given character is an alphanumeric character (or a character that can form part of a Gobstones Language identifier or keyword that requires translation).
There should be a way to provide the suffix to the reader in order to avoid using it as a finishing character.
Private
offset
The StringReader is the hearth on how the Gobstones Language code is read for translation. The code passes through an instance of this class, and is read one word at a time, maintaining characters that are non word exactly as they are (preserves formatting of the code).
The most important method in this class is probably the isAlpha method, that states what characters should be considered part of a word, and which don't. In order to better support UTF-8 this method should be revised in the future.