Represents a JavaScript
lexer (lexical analyzer) implementation.
- Inheritance:
-
object
Mergable
Lexer objectBase
- Implements:
-
IMergable
Lexer ILexer IKeyedObject
Constructors
JavaScriptLexer()
Initializes a new instance of the JavaScriptLexer
class.
Properties
LexicalStates
Gets the collection of lexical states used by this lexer.
Property Value
- ILexical
State :Collection The collection of lexical states used by this lexer.
Methods
GetAllLexicalStateTransitions()
Returns a collection containing all ILexical
Returns
- IEnumerable<ILexical
State >:Transition A collection containing all ILexical
State objects within the lexer.Transition
Remarks
This method allows consumers to see which language transitions can be made within the lexer.
GetNextToken(ITextBufferReader, ILexicalState)
Performs a lex to return the next Mergable
Parameter | Type | Description |
---|---|---|
reader | IText |
An IText |
lexicalState | ILexical |
The ILexical |
Returns
- Mergable
Lexer :Result A Mergable
Lexer indicating the lexer result.Result
IsIdentifierPartCharacter(char)
Returns whether the specified character is an identifier part character.
Parameter | Type | Description |
---|---|---|
ch | char | The character to examine. |
Returns
- bool:
true
if the specified character is an identifier part character; otherwise,false
.
IsIdentifierStartCharacter(char)
Returns whether the specified character is an identifier start character.
Parameter | Type | Description |
---|---|---|
ch | char | The character to examine. |
Returns
- bool:
true
if the specified character is an identifier start character; otherwise,false
.
Inherited Members
-
Mergable
Lexer Base. Create Change Batch() -
Mergable
Lexer Base. Create Document End Token(int, Text Position, ILexical State) -
Mergable
Lexer Base. Create Token(int, int, Text Position, Text Position, Mergable Lexer Flags, ILexical State, IMergable Token Lexer Data) -
Mergable
Lexer Base. Get Default Token(IText Buffer Reader, ILexical State) -
Mergable
Lexer Base. Get Incremental Parse Range(Text Snapshot Range) -
Mergable
Lexer Base. On Changed(Event Args) -
Mergable
Lexer Base. Parse(Text Snapshot Range, ILexer Target) -
Mergable
Lexer Base. Default Lexical State Core -
Mergable
Lexer Base. Key Core -
Mergable
Lexer Base. Lexical State Id Provider Core -
Mergable
Lexer Base. Token Id Provider Core -
Mergable
Lexer Base. Changed -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()