summarum/src/engine
google-labs-jules[bot] 50ae73be73 Refactor lexLine function to use extracted helper methods
Extracted the individual token parsing blocks from `lexLine` into dedicated helper functions (`tryLexDate`, `tryLexBaseNumber`, `tryLexDecimalNumber`, `tryLexDotNumber`, `tryLexXRef`, `tryLexWord`).

This improves readability and maintainability by keeping the core parsing loop concise while preserving the exact fallback logic and functionality of the lexer.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-07-08 11:45:00 +00:00
..
datetime.test.ts add tests for datetime.ts 2026-07-08 14:01:34 +03:00
datetime.ts engine: configurable date formats, both input and display 2026-07-03 11:35:47 +03:00
edge.test.ts engine: configurable date formats, both input and display 2026-07-03 11:35:47 +03:00
engine.test.ts workspace: don't cache exports from a cycle-interrupted evaluation 2026-07-02 05:50:40 +03:00
evaluator.ts multiplying same-dimension quantities keeps a sane unit 2026-07-03 11:25:01 +03:00
extraunits.ts feat: Summarum — natural language calculator notebook for Windows 2026-06-10 22:19:24 +03:00
formatter.ts engine: configurable date formats, both input and display 2026-07-03 11:35:47 +03:00
index.ts engine: configurable date formats, both input and display 2026-07-03 11:35:47 +03:00
lexer.ts Refactor lexLine function to use extracted helper methods 2026-07-08 11:45:00 +00:00
parser.ts "time in Europe/Berlin" dropped the second word 2026-07-03 11:25:56 +03:00
rates-snapshot.json feat: Summarum — natural language calculator notebook for Windows 2026-06-10 22:19:24 +03:00
registry.ts registry: split buildRegistry into per-category functions 2026-07-03 11:31:02 +03:00
tokenizer.ts engine: configurable date formats, both input and display 2026-07-03 11:35:47 +03:00
types.ts engine: configurable date formats, both input and display 2026-07-03 11:35:47 +03:00
unitdata.ts add fluid ounce (fl oz) unit, EN/RU 2026-07-01 13:10:06 +03:00
vocab-data.ts exp() silently evaluated as a no-op 2026-07-03 11:25:29 +03:00
vocab.ts feat: Summarum — natural language calculator notebook for Windows 2026-06-10 22:19:24 +03:00