"Aaron M. Renn" <[EMAIL PROTECTED]> writes:
> >I fail to see the problem here. "/" is a non-alphabetic/non-numeric
> >character, so it will terminate the word. You don't throw away the
>
> Think so? I call wordChars('/', '/'); Now what is it?
It's an alphabetic character, so it would not terminate the word.
Yes, doing a wordChars('/','/') would prevent you from having C, C++
comments, but it doesn't go against the spec, nor are you getting into
undefined territory. Just parse the stream step by step, in the order
specified in the JLS.
"foo//testing<EOL>"
So, with the wordChars call, this is:
foo//testing = identifier
--
Paul Fisher * [EMAIL PROTECTED]