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.