Class Scanner
Inheritance
System.Object
Scanner
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: OpenSilver.Compiler.TypeScriptDefToCSharp.dll
Syntax
Constructors
|
Improve this Doc
View Source
Scanner(Action<String>)
Declaration
public Scanner(Action<string> methodToUpdateProgress)
Parameters
Type |
Name |
Description |
System.Action<System.String> |
methodToUpdateProgress |
|
Fields
|
Improve this Doc
View Source
CurrentColumn
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CurrentLine
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CurrentPosition
Declaration
public int CurrentPosition
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
EndPos
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Patterns
Declaration
public Dictionary<TokenType, Regex> Patterns
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<TokenType, System.Text.RegularExpressions.Regex> |
|
|
Improve this Doc
View Source
Skipped
Declaration
public List<Token> Skipped
Field Value
Type |
Description |
System.Collections.Generic.List<Token> |
|
|
Improve this Doc
View Source
StartPos
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
GetToken(TokenType)
Declaration
public Token GetToken(TokenType type)
Parameters
Returns
|
Improve this Doc
View Source
Init(String)
Declaration
public void Init(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
|
Improve this Doc
View Source
LookAhead(TokenType[])
returns token with longest best match
Declaration
public Token LookAhead(params TokenType[] expectedtokens)
Parameters
Type |
Name |
Description |
TokenType[] |
expectedtokens |
|
Returns
|
Improve this Doc
View Source
Scan(TokenType[])
executes a lookahead of the next token
and will advance the scan on the input string
Declaration
public Token Scan(params TokenType[] expectedtokens)
Parameters
Type |
Name |
Description |
TokenType[] |
expectedtokens |
|
Returns
Extension Methods