Project Info
perl recursive descent parser module
Functions of perl recursive descent parser module
This is also a module which was written as part of a larger project .
Comments :
This module in turn uses the Recursive Descent Parser Module functionality. Altavista or major search engine syntax is followed and Users will be allowed to create query strings using Boolean connectors:
AND , OR , AND NOT , OR NOT , NOT
In addition, users will be allowed to group queries using parentheses, e.g.:
hello AND NOT (goodbye OR greeting)
Example usage of the module
$pageLength = 40;
$page = 0;
$searchString = "hello OR goodbye";
$itemOnPage = 13;
$module = KeywordSearch -> New ($pageLength);
$module -> search ($searchString,$page);
($level,$levelID,$text) = $module -> get ($itemOnPage);
perl regex regular expression parsing capability is put to full use here. Couldnt find time to upload to CPAN the perl module repository
Contact Us
Click for more projects under Text Parsers Arithmetic category