ScannerCommon
Attributes
- Graph
- Supertypes
- Known subtypes
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- CharArrayReader
- Graph
- Supertypes
Value members
Abstract methods
The token for given name
. Either IDENTIFIER or a keyword.
The token for given name
. Either IDENTIFIER or a keyword.
Attributes
Concrete methods
Generate an error at the given offset
Generate an error at the given offset
Attributes
Finish an IDENTIFIER with this.name
.
Finish an IDENTIFIER with this.name
.
Attributes
Clear buffer and set name and token.
If target
is different from this
, don't treat identifiers as end tokens.
Clear buffer and set name and token.
If target
is different from this
, don't treat identifiers as end tokens.
Attributes
signal an error where the input ended in the middle of a token
signal an error where the input ended in the middle of a token
Attributes
append Unicode character to "litBuf" buffer
append Unicode character to "litBuf" buffer
Attributes
Inherited methods
Switch whether unicode should be decoded
Attributes
- Inherited from:
- CharArrayReader
Is current token first one after a newline?
Attributes
- Inherited from:
- CharArrayReader
Attributes
- Inherited from:
- TokenData
Attributes
- Inherited from:
- TokenData
Attributes
- Inherited from:
- TokenData
Is last character a unicode escape \uxxxx?
Attributes
- Inherited from:
- CharArrayReader
A new reader that takes off at the current character position
A new reader that takes off at the current character position
Attributes
- Inherited from:
- CharArrayReader
Advance one character; reducing CR;LF pairs to just LF
Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.
Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.
Attributes
- Inherited from:
- CharArrayReader
Attributes
- Inherited from:
- CharArrayReader
Concrete fields
A character buffer for literals
A character buffer for literals
Attributes
Inherited fields
the last read character
The offset one past the last read character
The offset before the last read character
the offset of the character following the token preceding this one
the offset of the character following the token preceding this one
Attributes
- Inherited from:
- TokenData
the offset of the newline immediately preceding the token, or -1 if token is not preceded by a newline.
the offset of the newline immediately preceding the token, or -1 if token is not preceded by a newline.
Attributes
- Inherited from:
- TokenData
The start offset of the current line
the name of an identifier
the offset of the first character of the current token
the string value of a literal