Other

cellar

Spreadsheet engine in Dart

A spreadsheet engine written in pure Dart, with its own formula language. It reads formulas, tracks the links between cells and recalculates only what is needed.

cellar

About the project

cellar is a spreadsheet engine in pure Dart: the part of a spreadsheet that understands formulas and recalculates cells. It has its own formula language with a parser (a program that turns the text of a formula into a structure the engine can work with). It keeps the links between cells in a dependency graph, a map of which cell uses which. Whoever uses the engine gets a sheet where changing one value refreshes every result that depends on it.

The challenge

The hardest part of a spreadsheet engine is recalculation: after one cell changes you must not recompute everything or work in a random order, only exactly the cells that depend on it. A custom formula language adds a parser on top, which had to be written from scratch.

What we did

  1. 01

    A spreadsheet engine in pure Dart

  2. 02

    A custom formula language

  3. 03

    A parser that reads the formulas entered in cells

  4. 04

    A dependency graph between cells

  5. 05

    Recalculation of dependent cells only, in the right order

Related projects

Describe your project.

A free quote comes back within an hour during working hours.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.