|
|
|
|
|
|
|
|
|
|
| void |
_cell_to_rowcol ( $cell )
Convert an Excel cell reference such as A1 or $B2 or C$3 or $D$4 to a zero indexed row and column number. Also returns two boolean values to indicate whether the row or column are relative references.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| mixed |
_expression ( )
It parses a expression. It assumes the following rule: Expr -> Term [("+" | "-") Term]
|
|
| mixed |
_fact ( )
It parses a factor. It assumes the following rule:
|
|
| void |
_func ( )
It parses a function call. It assumes the following rule:
|
|
|
|
|
|
| mixed |
_parenthesized_expression ( )
This function just introduces a ptgParen element in the tree, so that Excel doesn't get confused when working with a parenthesized formula afterwards.
|
|
| mixed |
_term ( )
It parses a term. It assumes the following rule: Term -> Fact [("*" | "/") Fact]
|
|
In fact all operands, functions, references, etc... are written as ptg's
Fact -> ( Expr ) | CellRef | CellRange | Number | Function