Public Member Functions | |
def | getNextToken (self, theExpr) |
def | isKey (self, theExpr) |
def | parseAngle (self, treeNode) |
def | parseExpr (self, treeNode) |
def | parseIF (self, treeNode) |
def | translateForm (self, actExpr) |
Public Attributes | |
resultTree | |
tokenList | |
Detailed Description
This class translates a cell-formula from Excel to FreeCAD.
Member Function Documentation
◆ getNextToken()
def importXLSX.FormulaTranslator.getNextToken | ( | self, | |
theExpr | |||
) |
This is the recursive tokenizer for an excel formula. It appends all identified tokens to self.tokenList.
References importXLSX.FormulaTranslator.getNextToken(), importXLSX.FormulaTranslator.isKey(), Spreadsheet_legacy.Spreadsheet.isKey(), and importXLSX.FormulaTranslator.tokenList.
Referenced by importXLSX.FormulaTranslator.getNextToken(), and importXLSX.FormulaTranslator.translateForm().
◆ isKey()
def importXLSX.FormulaTranslator.isKey | ( | self, | |
theExpr | |||
) |
Referenced by importXLSX.FormulaTranslator.getNextToken().
◆ parseAngle()
def importXLSX.FormulaTranslator.parseAngle | ( | self, | |
treeNode | |||
) |
References importXLSX.FormulaTranslator.parseExpr().
Referenced by importXLSX.FormulaTranslator.parseExpr().
◆ parseExpr()
def importXLSX.FormulaTranslator.parseExpr | ( | self, | |
treeNode | |||
) |
References importXLSX.FormulaTranslator.parseAngle(), importXLSX.FormulaTranslator.parseExpr(), importXLSX.FormulaTranslator.parseIF(), and importXLSX.FormulaTranslator.tokenList.
Referenced by importXLSX.FormulaTranslator.parseAngle(), importXLSX.FormulaTranslator.parseExpr(), and importXLSX.FormulaTranslator.parseIF().
◆ parseIF()
def importXLSX.FormulaTranslator.parseIF | ( | self, | |
treeNode | |||
) |
References importXLSX.FormulaTranslator.parseExpr().
Referenced by importXLSX.FormulaTranslator.parseExpr().
◆ translateForm()
def importXLSX.FormulaTranslator.translateForm | ( | self, | |
actExpr | |||
) |
References importXLSX.FormulaTranslator.getNextToken().
Member Data Documentation
◆ resultTree
importXLSX.FormulaTranslator.resultTree |
◆ tokenList
importXLSX.FormulaTranslator.tokenList |
Referenced by importXLSX.FormulaTranslator.getNextToken(), and importXLSX.FormulaTranslator.parseExpr().
The documentation for this class was generated from the following file:
- src/Mod/Spreadsheet/importXLSX.py