JavaScanner
Type members
Inherited classlikes
Value members
Inherited methods
Generate an error at the given offset
Generate an error at the given offset
- Inherited from:
- ScannerCommon
Finish an IDENTIFIER with this.name
.
Finish an IDENTIFIER with this.name
.
- Inherited from:
- ScannerCommon
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.
- Inherited from:
- ScannerCommon
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
- Inherited from:
- ScannerCommon
Is current token first one after a newline?
Is current token first one after a newline?
- Inherited from:
- TokenData
Is token a COLON, after having converted COLONEOL to COLON?
The conversion means that indentation is not significant after :
anymore. So, warning: this is a side-effecting operation.
Is token a COLON, after having converted COLONEOL to COLON?
The conversion means that indentation is not significant after :
anymore. So, warning: this is a side-effecting operation.
- Inherited from:
- TokenData
Is last character a unicode escape \uxxxx?
Is last character a unicode escape \uxxxx?
- 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
- Inherited from:
- CharArrayReader
Advance one character; reducing CR;LF pairs to just LF
Advance one character; reducing CR;LF pairs to just LF
- Inherited from:
- CharArrayReader
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.
- Inherited from:
- CharArrayReader
append Unicode character to "litBuf" buffer
append Unicode character to "litBuf" buffer
- Inherited from:
- ScannerCommon
Concrete fields
Inherited fields
The offset one past the last read character
The offset one past the last read character
- Inherited from:
- CharArrayReader
The offset before the last read character
The offset before the last read character
- Inherited from:
- CharArrayReader
the offset of the character following the token preceding this one
the offset of the character following the token preceding this one
- 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.
- Inherited from:
- TokenData
The start offset of the current line
The start offset of the current line
- Inherited from:
- CharArrayReader
the offset of the first character of the current token
the offset of the first character of the current token
- Inherited from:
- TokenData