Class FormulaTokenizer
Converts string into set of tokens.
Inheritance
System.Object
FormulaTokenizer
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: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class FormulaTokenizer
Constructors
FormulaTokenizer(WorkbookImpl)
Default constructor.
Declaration
public FormulaTokenizer(WorkbookImpl book)
Parameters
Type | Name | Description |
---|---|---|
WorkbookImpl | book |
Fields
PreviousTokenType
Token type of the previous token.
Declaration
public FormulaToken PreviousTokenType
Field Value
Type | Description |
---|---|
FormulaToken |
TokenType
Current token TokenType.
Declaration
public FormulaToken TokenType
Field Value
Type | Description |
---|---|
FormulaToken |
Properties
ArgumentSeparator
Gets / sets argument separator.
Declaration
public char ArgumentSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
NumberFormat
Gets / sets number format info.
Declaration
public NumberFormatInfo NumberFormat { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.NumberFormatInfo |
TokenString
Returns value of the current token. Read-only.
Declaration
public string TokenString { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
NextToken()
Extracts next token from the string.
Declaration
public void NextToken()
Prepare(String)
Prepares tokinezer for formula parsing.
Declaration
public void Prepare(string formula)
Parameters
Type | Name | Description |
---|---|---|
System.String | formula | Formula to parse. |
RaiseException(String, Exception)
Raises parse exception.
Declaration
public void RaiseException(string msg, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.String | msg | Exception message. |
System.Exception | ex | Inner exception. |
RaiseUnexpectedToken(String)
Raises parser exception with message that token was unexpected.
Declaration
public void RaiseUnexpectedToken(string msg)
Parameters
Type | Name | Description |
---|---|---|
System.String | msg | Additional message. |
RestoreState()
Declaration
public void RestoreState()
SaveState()
Declaration
public void SaveState()