Y
Hacker News
new
|
ask
|
show
|
jobs
by
zabzonk
1021 days ago
using recursive descent, you don't need to build an ast
2 comments
jjtheblunt
1021 days ago
the call stack during recursive descent is an ephemeral ast, for the recursive descent parsers I've written.
link
hedora
1020 days ago
That implies the memory usage is proportional to the depth of the AST, not the total size (which is the point, I think).
link
pjmlp
1020 days ago
Only if the compiler doesn't do anything beyond basic peephole optimizations.
link