A Scanner for Java tokens. Errors are reported
to the environment object.
The scanner keeps track of the current token,
the value of the current token (if any), and the start
position of the current token.
The scan() method advances the scanner to the next
token in the input.
The match() method is used to quickly match opening
brackets (ie: '(', '{', or '[') with their closing
counter part. This is useful during error recovery.
An position consists of: ((linenr << WHEREOFFSETBITS) | offset)
this means that both the line number and the exact offset into
the file are encoded in each position value.
The compiler treats either "\n", "\r" or "\r\n" as the
end of a line.
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
author: Arthur van Hoff version: 1.60, 12/15/96 |