further development on Teapot, a three-dimensional, function-oriented spreadsheet with iterative updates, written by Michael Haardt and Jörg Walter, from V 2.3.0 posted 2012 Feb 6.
Go to file
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 #56) 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 #22,
  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 #59.

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

  Fixes #31.

  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
doc Streamline internals of teapot 2019-08-23 12:12:06 -07:00
examples Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
src Streamline internals of teapot 2019-08-23 12:12:06 -07:00
.gitignore Restore compilation of curses teapot on OpenSUSE Tumbleweed 2019-07-22 15:02:18 -07:00
CMakeLists.txt Move source code into subdirectory 2019-07-27 01:35:44 -04:00
config.h.in Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
COPYING Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
INSTALL Restore build of fteapot (on OpenSUSE Tumbleweed) 2019-07-22 17:13:24 -07:00
LICENSE Initial commit 2019-07-22 20:26:15 +00:00
NEWS Import exactly the files of the teapot-2.3.0 distribution 2019-07-22 13:32:33 -07:00
README.md Merge readme files 2019-07-22 13:44:57 -07:00
teapot.1 Prevent phantom values when clocking, resetting, and clocking again 2019-07-24 10:47:39 -07:00

teapot-spreadsheet

This project represents further development on Teapot, a three-dimensional, function-oriented spreadsheet with iterative updates, written by Michael Haardt and Jörg Walter, from V 2.3.0 posted 2012 Feb 6.

This is a development version following release 2.3.0 of teapot (Table Editor And Planner, Or: Teapot), a spread sheet program for UNIX.

Copyright (C) 1995-2006 Michael Haardt
Copyright (C) 2009-2012 Joerg Walter
Copyright (C) 2019 Glen Whitney
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

The current release has the following features:

  • curses based user interface with easy to understand menus
  • FLTK 1.3 based GUI following common user interface conventions
  • Cross-platform compatibility
  • UTF-8 support
  • portable sheet file format uses XDR or ASCII format
  • tbl, LaTeX, HTML, CSV or formatted text files can be generated and simple SC and WK1 sheets can be imported
  • typed expression evaluator with the types int, float, string, error, pointer to cell and empty
  • iterative expressions
  • powerful cell addressing
  • three-dimensional sheets
  • new expression evaluator functions can be added very easy
  • a user guide, available as PDF and HTML
  • It is still a small and simple program!

teapot should work on any system which supports the following:

  • ANSI C
  • An XDR library (included in the GNU C library, otherwise use http://people.redhat.com/~rjones/portablexdr/ )
  • For the text interface: SYSV curses or ncurses library
  • For UTF-8 in the text interface: libncursesw and a UTF-8 locale
  • For the FLTK interface: C++
  • For the FLTK interface: FLTK 1.3

A GNU zipped tar file of the prior release V 2.3.0 is available from:

http://www.syntax-k.de/projekte/teapot/

This development version is hosted at https://code.studioinfinity.org/glen/teapot-spreadsheet.

For more information, read the included manual in HTML or PDF format.