Post #1500286
2026-04-10 23:52 UTC
This output then gets fed back into the Pratt parser for another round.
The process continues until the token stream reaches a fixed point.
Then the Pratt parser’s ruleset is replaced with one for producing parse trees.
The rulesets are to be defined by plugins, so the compiler is customizable.
Most likely the parse trees will be converted to whole program direct threaded code with proper tail calls, by use of GCC computed goto. Cl*ng supports computed goto.
Replies (1)
-
@chemoelectric@masto.ai 2026-04-10 23:52
Another thing is I am getting tired of writing malloc-free code and so will switch to using Boehm GC.