Repository navigation
Commit 3f975de
committed
Make building the AST cheaper
The reducers are given the first and last token index as two ints computed
inline, instead of a phplrt Context filled by a call per reduction. Attributes
are skipped without a call when none are used, and a reading no longer saves
and restores the state of a previous one.
Amp-Thread-ID: https://ampcode.com/threads/T-01a17820-94d1-75c8-9206-2e802d9c05561 parent a2f5214 commit 3f975de
5 files changed
Lines changed: 6589 additions & 7222 deletions
File tree
- src/Parser
- Generated
- tools/phplrt
0 commit comments