Class
SpreadsheetFormulaSyntaxTree
OfficeIMO.Spreadsheet
Lossless, nested syntax tree for Excel A1 or OpenFormula text. Parsing keeps literals and trivia while assigning separator and reference semantics from their structural context.
Inheritance
- object
- SpreadsheetFormulaSyntaxTree
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Methods
public static SpreadsheetFormulaSyntaxTree Parse(string text, SpreadsheetFormulaDialect dialect) #Parses a formula using the requested grammar.
Parameters
- text string
- dialect OfficeIMO.Spreadsheet.SpreadsheetFormulaDialect
Returns
SpreadsheetFormulaSyntaxTreepublic SpreadsheetFormulaTranslationResult TranslateTo(SpreadsheetFormulaDialect targetDialect) #Translates the parsed tree to another supported grammar.
Parameters
- targetDialect OfficeIMO.Spreadsheet.SpreadsheetFormulaDialect
Inherited Methods
Properties
public SpreadsheetFormulaDialect Dialect { get; } #Gets the source grammar.
public SpreadsheetFormulaSyntaxNode Root { get; } #Gets the root syntax node.
public IReadOnlyList<SpreadsheetFormulaDiagnostic> Diagnostics { get; } #Gets parse findings in source order.
public bool IsValid { get; } #Gets whether the authored formula is structurally valid for safe translation.