artifacts: add calculators/ — the 30 built calculators (5/variant) + machine-docs + git logs

This commit is contained in:
2026-06-16 15:39:42 +00:00
parent 64bc360fc0
commit bb85aa9f11
728 changed files with 34148 additions and 0 deletions
@@ -0,0 +1,9 @@
# JOURNAL — phase lex
## Implementation notes
- Used `dataclass` for `Token` so equality works naturally in tests.
- `value` field: int for integers, float for floats (including `.5` and `10.`), str for operators, None for EOF.
- Number parsing handles leading-dot (`.5`) and trailing-dot (`10.`) cases via a single scan loop tracking `has_dot`.
- `LexError` extends `Exception` directly; message includes the char repr and position index.
- 15 tests cover all DoD items plus edge cases (tab whitespace, `$`, letter `x`).