2.1 KiB
2.1 KiB
[ ] Means not done [x] Means done
- Unify error reporting. Create class ErrorHandler that get notified of every catched exception. This class prints the exception in stdout.
- 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
- Remove
fromArrayStringLiteralfrom UnitSpec and Formula. - 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