Commit graph

3 commits

Author SHA1 Message Date
Stephen Dennis
12adef906b Add parser compatibility study profiles 2026-03-21 03:08:02 -06:00
Stephen Dennis
f124a8cd22 Factor shared tokenizer/parser/AST into mux_parse.h
Extract duplicated tokenizer, parser, and AST code from three study
tools into a shared header. Each tool is now a thin main() wrapper.
Added ast_raw_text() utility for source reconstruction. No behavioral
changes — 78 tests still pass.

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