|
The fact that Jack Tokenizer API has a method hasMoreTokens suggests to me that it must be somehow possible to detect a token in general, so without at the same time determining its type.
The only way I can see that this is possible is when there are enough markers (blanks,eol,punctuation etc.) available in the Jack language so that a string between them always qualifies as as a token.
Is that the case? Or must I prepare for writing something more sophisticated with some backtracking and parallelism ?
|