Posted 16 years ago
by Ernesto Obregon
Actipro
Is there an easy way to iterate backwards from the current cursor position on the current line to see if there is any other tokens on the line besides the last immediate token before the cursor ?
Example: I want to find what the next valid token is besides the WhiteSpaceToken between the / and the word 'text' below if 'text' was a KeyWordToken or if there are no tokens then I should read a LineTerminatorToken as this is what is returned by default at the beginning of a line.
Is there an easy way to iterate backwards from the current cursor position on the current line to see if there is any other tokens on the line besides the last immediate token before the cursor ?
Example: I want to find what the next valid token is besides the WhiteSpaceToken between the / and the word 'text' below if 'text' was a KeyWordToken or if there are no tokens then I should read a LineTerminatorToken as this is what is returned by default at the beginning of a line.
Current line of text /