teapot-spreadsheet/doc
Glen Whitney 364ef2c0ea Streamline internals of teapot
The primary change is to add a “funcall” token, so that an entire expression
  can be encapsulated as a single token. This change is used to allow a cell to
  include simply a selection of appropriate semantic tokens. I.e., the content
  and iterative content are now each a single token like the value and the
  result value. Token vectors are used only as intermediate results in scanning
  and parsing.

  Not this means the cells are now in effect storing parse trees, so
  computation should be slightly faster and future extensions (like ) should
  be facilitated.

  This commit also takes the opportunity while internals are being altered to
  add another token to a cell for future use for computed attributes, cf ,
  and to change the internal numerical values from double and ints to long
  doubles and long longs. However, the change attempts to encapsulate that
  choice so it would be easy to change back or change to another representation.

  Note that these changes break savexdr(), as the internal binary format of
  a cell is now different. Rather than reimplement it, it is deprecated as
  the world does not need another binary spreadsheet format. Hence, the
  ascii format for teapot spreadsheets becomes the primary file format.
  Loading of old xdr files is still supported for backward compatibility.

  Closes .

  Also along the way, various other slight fixes and enhancements crept in,
  a partial but probably not exhaustive list of which follows:

  Fixes .

  Further revisions and improvements to documentation.

  Make the approximate comparison of floating point values scale more
  accurately with the size of the doubles being compared.

  Further extensions of absolute and relative cell addressing.

  Addition of (circle constant) tau function/constant.

  Modified string conversion to simply use internal printing routines, and
  to take "scientific" and "decimal" keywords.

  Allowed n() function to take a list of values, or just a single location
  defaulting to the current location.

  Added floor, ceil, trunc, and round functions, and allowed them to be
  keywords controlling the int() integer conversion function as well.

  Allowed substr() to drop its last argument to go to the end of the string.

  Provided an enum of built-in functions to preserve legacy function
  identifiers, allowing the large table inside func.c to be reorganized
  in a clearer fashion.

  Added additional annotation of properties of the built-in functions,
  including precedence.

  All operators are now also accessible as built-in functions.

  Made precedence of unary - lower than ^ to match python.

  Avoided inadvertently using FLTK @symbol abbreviations for formulas with
  "@" in them.
2019-08-23 12:12:06 -07:00
..
.latex2html-init Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
contents.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
Ein neues Leben für Teapot.mbox Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
next_g.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
next.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
prev_g.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
prev.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
teapot.lyx Streamline internals of teapot 2019-08-23 12:12:06 -07:00
up_g.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
up.png Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00