Commit graph

10 commits

Author SHA1 Message Date
Stephen Dennis
986163f133 Demote exploratory mux213 parser oracle 2026-03-23 14:32:54 -06:00
Stephen Dennis
3c35e2b80d Correct deferred escape oracle and docs 2026-03-23 14:28:17 -06:00
Stephen Dennis
fbeca3a7b7 Prototype parser-controlled lexer modes for noeval 2026-03-23 12:32:35 -06:00
Stephen Dennis
d4d0b4d75f Add parser escape oracles 2026-03-21 12:01:17 -06:00
Stephen Dennis
2ed1a959f0 Align parser study with engine behavior 2026-03-21 05:23:57 -06:00
Stephen Dennis
21f61ae13a Update parser compatibility docs 2026-03-21 04:30:56 -06:00
Stephen Dennis
12adef906b Add parser compatibility study profiles 2026-03-21 03:08:02 -06:00
Stephen Dennis
60f668bfd9 Add AST evaluator with 50+ builtin functions
Stage 3 of parser study: tree-walking evaluator that demonstrates
pure-expression MUX softcode CAN be evaluated from an AST. Implements
arithmetic, string, list, comparison, boolean, register, and control
flow functions. Includes 64-test harness.

Key finding: FN_NOEVAL functions (iter, switch, if) need deferred
argument evaluation — the evaluator must pass unevaluated AST subtrees
rather than pre-evaluated strings. Solvable but requires a different
dispatch mechanism than simple string-in/string-out handlers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 10:06:59 -07:00
Stephen Dennis
a5aa9efacb Add recursive-descent parser and enhanced tokenizer
Stage 2 of parser study: recursive-descent parser that builds an AST
from the token stream. Handles static function calls, dynamic/computed
calls (DynCall), eval brackets, brace groups, and nested arglists.
Enhanced tokenizer with full L2 %-substitution coverage. Added test
corpus covering all major expression patterns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 10:06:59 -07:00
Stephen Dennis
666759ca39 Add parser architecture study and tokenizer prototype
Document the three-layer parser architecture (command, expression,
lock) in docs/PARSER.md with analysis of mux_exec internals, the
backwards function name recognition challenge, and a staged plan
for potential AST generation. Include a standalone tokenizer CLI
tool in parser/ for studying MUX expression structure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 10:06:59 -07:00