Constructs a token (of arbitrary type) from a String and its position
in the underlying text. (The int arguments are used just to record token
character offsets in an underlying text. This method does not take
a substring of str.)
str - The String extracted by the lexer.
begin - The offset in the document of the first character
in this string.
length - The number of characters the string takes up in