Text::Query::Build(3)

πŸ“¦ version 0.09, in arch rolling

πŸ’… 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 match Q1 OR Q2. πŸ”₯
  • build_expression_finish(Q1) β€” Generate any code needed to enclose an expression. πŸŽ€
  • build_conj(Q1,Q2,F) β€” Generate code needed to match Q1 AND Q2. F will 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 match Q1 NEAR Q2. 🌈
  • build_concat(Q1,Q2) β€” Generate code needed to match Q1 immediately followed by Q2. 🧚
  • build_negation(Q1) β€” Generate code needed to match NOT Q1. πŸ™ˆ
  • build_literal(Q1) β€” Generate code to match Q1 as a literal. πŸ“
  • build_scope_start($scope) β€” Generate code to enter in the $scope query context. 🌸
  • build_scope_end($scope,Q1) β€” Generate code needed to match Q1 in the $scope context. πŸ’œ
  • build_mandatory(Q1) β€” Generate code to match Q1 (think + in AltaVista syntax). πŸ‘‘
  • build_forbiden(Q1) β€” Generate code to match NOT Q1 (think - in AltaVista syntax). πŸ’€

🐚 SEE ALSO 🐚

πŸ‘‘ 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