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,13 @@
# JOURNAL — phase lex
## Approach
- `Token` is a `dataclass` with `kind: str` and `value: Union[int, float, str, None]`.
- `tokenize()` is a simple single-pass scanner using index `i`.
- Numbers: greedy scan of digits and `.`; if `.` present → `float`, else → `int`.
- Operators/parens: single-char dispatch via `_SINGLE` dict.
- Whitespace (space, tab): skipped silently.
- Anything else: raises `LexError` with the offending char and position.
- `EOF` token appended at the end.
## Test count: 13 — all green on first run.