Skip to content

Wojtek/spm#1

Open
tetek wants to merge 2 commits intomasterfrom
wojtek/spm
Open

Wojtek/spm#1
tetek wants to merge 2 commits intomasterfrom
wojtek/spm

Conversation

@tetek
Copy link

@tetek tetek commented Jan 11, 2024

No description provided.

WiesnerPeti added a commit that referenced this pull request Feb 23, 2026
- Add user-defined macro support with parameter substitution (#1-kostub#9)
- \def\cmd#1#2{expansion} — TeX-style macro definitions
- \newcommand{\cmd}[n]{expansion} — LaTeX-style with param count
- \renewcommand, \providecommand (skip if already defined)
- \let\alias=\original — command aliasing
- Macro expansion with recursion depth limit (1000)
- Nested macro support (macros can reference other macros)
- Sub-builder shares macro dictionary for expansion
- 18 new tests (105 total), all passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant