d4t_formulas/TODO.md
Álvaro González 7461a2addf fn() for use inside formulas.
Compiling in:
Flutter 3.38.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 67323de285 (4 weeks ago) • 2026-01-28 13:43:12 -0800
Engine • hash 5eb06b7ad5bb8cbc22c5230264c7a00ceac7674b (revision 587c18f873) (29 days ago) • 2026-01-27 23:23:03.000Z
Tools • Dart 3.10.8 • DevTools 2.51.1
2026-02-26 20:03:19 +01:00

3.4 KiB

Conventions

[ ] Means not done [R] Means done by an ai agent, but needs a human review [X] Means done

List of tasks

  • Unify error reporting. Create class ErrorHandler that get notified of every catched exception. This class prints the exception in stdout.
  • Make formula description collapsable in FormulaScreen. Initialy, the description is visible, but the user can hide it.
  • Refactor formula and unit loading:
    • Create method `List<Object?> parseD4rtLiteral(String arrayStringLiteral). It parses a d4rt array literal (containing maps and arrays) to a List<Object?> using d4rt
    • Make fromArrayStringLiteral from UnitSpec and Formula to use parseD4rtLiteral
    • Create function List<Object> parseCorpusElements(String arrayStringLiteral). It uses parseD4rtLiteral and determines if each element of the array is a formula or a unit. Then converts the objects with Formula.fromSet or UnitSpec.fromSet.
    • Create method loadFormulaElements( List