Commits

Anonymous committed 1230416

added explanation on "Cell equation".

Comments (0)

Files changed (1)

 
 .. productionlist::
    eq: `lhs` "=" `rhs`
-   lhs: "{" integer [ ":" `condition` ] "}"
-   rhs: expression_stmt
-   condition: expression_stmt
+   lhs: "{" `integer` [ ":" `condition` ] "}"
+   rhs: `expression_stmt_format`
+   condition: `expression_stmt`
+   integer: <see python document>
+   expression_stmt: <see python document>
+   expression_stmt_format: <expression_stmt with the format string>
+
+:token:`expression_stmt_format` is as same as :token:`expression_stmt`
+except for that it will be formatted by the python's `str.format`
+function and then used as a python expression.  Defined fields are the
+integers which represent the index of the columns.  For example,
+``{0}`` will be replaced by the 0-th cell of the current row.
+
+.. note::
+
+   Current version of rstSpreadsheet cannot parse the
+   :token:`condition` which has ``{`` or ``}`` in it.
 
 
 Special variables