|
Text::Query::Build - Base class for query builders |
Text::Query::Build - Base class for query builders
package Text::Query::BuildMy;
use Text::Query::Build;
use vars qw(@ISA);
@ISA = qw(Text::Query::Build);
This module provides a virtual base class for query builders.
Query builders are called by the parser logic. A given set of functions is provided by the builder to match a Boolean logic. All the methods return a scalar corresponding to the code that performs the specified options.
Parameters Q1 and Q2 are the same type of scalar as the return values.
matchstring()
build_init()build_final_expression(Q1)build_expression(Q1,Q2)Q1 OR Q2
build_expression_finish(Q1)build_conj(Q1,Q2,F)Q1 AND Q2. F will be true if this is the first
time this method is called in a sequence of several conjunctions.
=item build_near(Q1,Q2)
Generate code needed to match Q1 NEAR Q2.
build_concat(Q1,Q2)Q1 immediately followed by Q2.
build_negation(Q1)Q1.
build_literal(Q1)Q1 as a literal.
build_scope_start($scope)$scope query context.
build_scope_end($scope,Q1)Q1 in the $scope context.
build_mandatory(Q1)Q1 (think + in AltaVista syntax).
build_forbiden(Q1)Q1 (think - in AltaVista syntax).
Text::Query(3)
Eric Bohlman (ebohlman@netcom.com)
Loic Dachary (loic@senga.org)
|
Text::Query::Build - Base class for query builders |