JavaScanner
Attributes
- Graph
-
- Supertypes
-
class ScannerCommontrait TokenDataclass CharArrayReaderclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class LookaheadScanner
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class JavaScannerclass ScannerCommontrait TokenDataclass CharArrayReaderclass Objecttrait Matchableclass AnyShow all
Inherited classlikes
Attributes
- Inherited from:
- CharArrayReader
- Supertypes
Value members
Concrete methods
Switch whether unicode should be decoded
convert name, base to double value
convert name, base to double value
Attributes
Read next character in character or string literal.
Read next character in character or string literal.
Value parameters
- inTextBlock
-
is this for a text block?
- scanOnly
-
skip emitting errors or adding to the literal buffer
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
The token for given name
. Either IDENTIFIER or a keyword.
The token for given name
. Either IDENTIFIER or a keyword.
Attributes
Inherited methods
Attributes
- Inherited from:
- ScannerCommon
Generate an error at the given offset
Implements CharArrayReader's error method
Attributes
- Inherited from:
- ScannerCommon
Finish an IDENTIFIER with this.name
.
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
- Inherited from:
- ScannerCommon
Attributes
- Inherited from:
- CharArrayReader
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
- Inherited from:
- ScannerCommon
Attributes
- Inherited from:
- ScannerCommon
Is current token first one after a newline?
Attributes
- Inherited from:
- CharArrayReader
Attributes
- Inherited from:
- TokenData
Attributes
- Inherited from:
- TokenData
Attributes
- Inherited from:
- ScannerCommon
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
append Unicode character to "litBuf" buffer
Attributes
- Inherited from:
- ScannerCommon
Clear buffer and set string
Attributes
- Inherited from:
- ScannerCommon
Inherited fields
Attributes
- Inherited from:
- ScannerCommon
the last read character
The offset one past the last read character
the last error offset
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
A character buffer for literals
the name of an identifier
the offset of the first character of the current token
the string value of a literal