There's something to be said for returning the whole syntax tree.
About this quote
- What does it mean?
- Wall says there’s value in returning the entire syntax tree from a parser.
- In plain terms
- Returning the full syntax tree has advantages.
- What can you take from it?
- Having the whole tree enables deeper analysis and manipulation.
Where it applies
Putting it to work
Questions to consider
- When is a full AST worth the overhead?
Another view
It may increase memory usage and processing time.
More from Larry Wall
You don't have to wait--you can have it in 5.004_54 or so. :-)
Permalink to quote #151 It's not really a rule--it's more like a trend.
Permalink to quote #153 Wow, I'm being shot at from both sides. That means I *must* be right. :-)
Permalink to quote #150
Related quotes
/* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. */
Larry WallLarry Wall quote #264 And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)
Larry WallLarry Wall quote #2 We toast the Lisp programmer who pens his thoughts within nests of parentheses.
Alan PerlisAlan Perlis quote #2