Class ParserConfiguration
Contains all parser, tokenizer configurations
Inheritance
Implements
Inherited Members
Namespace: SqlDotNet.Compiler
Assembly: SqlDotNet.dll
Syntax
public class ParserConfiguration : ILexerConstants
Fields
| Improve this Doc View SourceFunctionBeginParameterChars
List of chars, with wich a function could start
Declaration
public static readonly char[] FunctionBeginParameterChars
Field Value
Type | Description |
---|---|
System.Char[] |
FunctionParameterChars
Chars which are allowed in function or parameter names
Declaration
public static readonly char[] FunctionParameterChars
Field Value
Type | Description |
---|---|
System.Char[] |
NotBeginParameterChars
Chars, which are part of FunctionParameterChars but not allowed at the beginning of a function or parameter
Declaration
public static readonly char[] NotBeginParameterChars
Field Value
Type | Description |
---|---|
System.Char[] |
Properties
| Improve this Doc View SourceComplexToken
Complex tokens are tokens which has a specific start and end token, like a string: "Hello World"
Declaration
public char[] ComplexToken { get; }
Property Value
Type | Description |
---|---|
System.Char[] |
ComplexTokenEscapeChar
Escape-Charachter in complex tokens
Declaration
public char[] ComplexTokenEscapeChar { get; }
Property Value
Type | Description |
---|---|
System.Char[] |
EndMultilineComment
String ending a multiline comment
Declaration
public string EndMultilineComment { get; }
Property Value
Type | Description |
---|---|
System.String |
FollowingTokens
Following tokens, like >= out of > and =
Declaration
public string[] FollowingTokens { get; }
Property Value
Type | Description |
---|---|
System.String[] |
SingleLineComment
String starting a single line comment
Declaration
public string SingleLineComment { get; }
Property Value
Type | Description |
---|---|
System.String |
StartMultilineComment
String starting a multiline comment
Declaration
public string StartMultilineComment { get; }
Property Value
Type | Description |
---|---|
System.String |
TokenSeperator
Seperator tokens
Declaration
public char[] TokenSeperator { get; }
Property Value
Type | Description |
---|---|
System.Char[] |
Methods
| Improve this Doc View SourceGetConstDataType(RawToken)
Get the datatype of value
Declaration
public DataType GetConstDataType(RawToken token)
Parameters
Type | Name | Description |
---|---|---|
RawToken | token |
Returns
Type | Description |
---|---|
DataType | Data type |
IsBoolean(String)
Declaration
public bool IsBoolean(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input |
Returns
Type | Description |
---|---|
System.Boolean |
IsDouble(String)
Proof wether the input string is a double or not
Declaration
public bool IsDouble(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | String to proof |
Returns
Type | Description |
---|---|
System.Boolean | True if it is a double |
IsFloat(String)
Proof wether the input string is a float or not
Declaration
public bool IsFloat(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | String to proof |
Returns
Type | Description |
---|---|
System.Boolean | True if it is a float |
IsInt32(String)
Proof wether the input string is a Int32
Declaration
public bool IsInt32(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | Input string |
Returns
Type | Description |
---|---|
System.Boolean | True if only countains digits |
IsInt64(String)
Proof wether the input string is a Int64
Declaration
public bool IsInt64(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | Input string |
Returns
Type | Description |
---|---|
System.Boolean | True if only countains digits |
IsString(String)
Proof wether the input is a string
Declaration
public bool IsString(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | Input string to proof |
Returns
Type | Description |
---|---|
System.Boolean | True if it is a string |
IsValidLanguageIndependentIdentifier(String)
Proof, wether the input value is a valid class, function or variable name
Declaration
public bool IsValidLanguageIndependentIdentifier(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | String to proof |
Returns
Type | Description |
---|---|
System.Boolean | True if is valid |