Text::...Parser(3pm)
β¨ NAME β¨
okay so bestie, meet Text::Xslate::Parser β she's the base class of template parsers π
and yes she's the mom of the whole parser family, respect her
π DESCRIPTION π
So like, what does she do? She's a parser whose whole job is building the abstract syntax tree out of your templates πΈ. That's it, that's the mission, no cap.
The way she works under the hood? The basis of the parser is Top Down Operator Precedence β which, iykyk, is the fancy-pants parsing technique (it's literally the thing you'd know if you know π). So every template walks in, gets read top-down, and comes out the other side as a tidy little tree π¦.
fr fr this is the base class β she's the blueprint, not the final boss. The actual parser vibes come from her subclasses π
π«Ά SEE ALSO π«Ά
http://javascript.crockford.com/tdop/tdop.htmlβ the TDOP lore drop, written by Douglas Crockford himself. Go read it, it's giving "classic" πText::Xslateβ the main character πText::Xslate::Compilerβ the one who actually runs the show after parsing πText::Xslate::Symbolβ the little symbol besties that hang out in the tree π
and that's the whole page, bestie, short but iconic, she ate and left no crumbs π
mwah π
this was perl v5.42.3, dated 2026-08-22, straight from the User Contributed Perl Documentation β ty for coming to my TED talk, ily, stream TDOP πβ¨
π¦ where this page comes from
- ubuntu stonking: libtext-xslate-perl 3.5.9-2build2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms