Text::Query::Build(3)
π Text::Query::Build π
okay bestie, this is the Text::Query::Build(3) page from the User Contributed Perl Documentation, and it's giving base-class energy. We're gonna get you through it, no cap. π«Ά
πΈ NAME πΈ
Text::Query::Build β base class for query builders. Iconic parent-class situation, honestly. π
β¨ SYNOPSIS β¨
package Text::Query::BuildMy;
use Text::Query::Build;
use vars qw(@ISA);
@ISA = qw(Text::Query::Build);
π¦ DESCRIPTION π¦
This module provides a virtual base class for query builders. Yes, that's the whole blueprint vibe. π
The parser logic calls query builders. A builder is given a set of functions so it can match Boolean logic. Every method returns a scalar, and that scalar is the code that performs the specified options.
Parameters Q1 and Q2 are the same type of scalar as the return values. Scalar symmetry, slay. β¨
π METHODS π
matchstring()
Hands back a string that represents the last built expression. Two identical expressions should generate the same string. This is for testing purpose. π§ͺ
π οΈ CODE-GENERATION METHODS π οΈ
Here's the code-generation crew β all method names and signatures stay exactly as they are, bestie. π
build_init()β Called before building the expression. It's your chance to initialize object data. β¨build_final_expression(Q1)β Does any final processing to generate code to match a top-level expression. The return value is NOT necessarily of a type that can be passed to the other code-generation methods. π¨build_expression(Q1,Q2)β Generate code to matchQ1ORQ2. π₯build_expression_finish(Q1)β Generate any code needed to enclose an expression. πbuild_conj(Q1,Q2,F)β Generate code needed to matchQ1ANDQ2.Fwill be true if this is the first time this method is called in a sequence of several conjunctions. π«build_near(Q1,Q2)β Generate code needed to matchQ1NEARQ2. πbuild_concat(Q1,Q2)β Generate code needed to matchQ1immediately followed byQ2. π§build_negation(Q1)β Generate code needed to match NOTQ1. πbuild_literal(Q1)β Generate code to matchQ1as a literal. πbuild_scope_start($scope)β Generate code to enter in the$scopequery context. πΈbuild_scope_end($scope,Q1)β Generate code needed to matchQ1in the$scopecontext. πbuild_mandatory(Q1)β Generate code to matchQ1(think+in AltaVista syntax). πbuild_forbiden(Q1)β Generate code to match NOTQ1(think-in AltaVista syntax). π
π SEE ALSO π
Text::Query(3)β go peek at this too, bestie. π
π AUTHORS π
- Eric Bohlman (
ebohlman@netcom.com) - Loic Dachary (
loic@senga.org)
okay that's the whole page, bestie β this was perl v5.38.2, dated 2024-07-13, and it's the Text::Query::Build(3) manual. bye and slay π«Άβ¨
π¦ where this page comes from
- arch rolling: perl-text-query 0.09-5 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms