Class Tokenizer
Tokenizer, which split the code into single tokens
Inheritance
System.Object
Tokenizer
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()
Namespace: SqlDotNet.Compiler
Assembly: SqlDotNet.dll
Syntax
public class Tokenizer
Constructors
| Improve this Doc View SourceTokenizer(ILexerConstants)
Create
Declaration
public Tokenizer(ILexerConstants lexerConstants)
Parameters
Type | Name | Description |
---|---|---|
ILexerConstants | lexerConstants | Lexer constants / config |
Tokenizer(ILexerConstants, IErrorListener)
Create
Declaration
public Tokenizer(ILexerConstants lexerConstants, IErrorListener errorListener)
Parameters
Type | Name | Description |
---|---|---|
ILexerConstants | lexerConstants | Lexer constants / config |
IErrorListener | errorListener | error listener for error capturing |
Properties
| Improve this Doc View SourceTokens
Tokens from the current tokenizer
Declaration
public Dequeue<RawToken> Tokens { get; set; }
Property Value
Type | Description |
---|---|
Dequeue<RawToken> |
Methods
| Improve this Doc View SourceParseAsync(String)
Parse script into tokens
Declaration
public void ParseAsync(string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | code |