Parse::Nibbler

Description

You can describe rule alternation in your rule by calling this method. The method takes a list of strings whose string values match the names of the valid alternate rule names. In the above example, the McCoy rule is either a declaration of profession or a medical diagnosis. These are two rules that are defined in the same package. The AlternateRules method allows you to define multiple rules that may be valid at the same point in the text. If a rule in the parameter list succeeds, the AlternateRule method succeeds, and returns immediately. If no rule succeeds, an exception is thrown, and the rule aborts. This rule expects either a "DeclareProfession" rule or a "MedicalDiagnosis" rule to be present. Register ( McCoy, sub { my $p = shift; $p->AlternateRules( DeclareProfession, MedicalDiagnosis ); } ); You can specify quantifiers as part of the alternate rule strings. $p->AlternateRules( DeclareProfession({+}), MedicalDiagnosis ); The above example indicates that you can have one or more DeclareProfession rules OR ALTERNATELY you can have exactly one MedicalDiagnosis rule. EXPORT Register, used to register the rules in your grammar..

Valueis - Medicaldiagnosis - Alternaterules - Alternatevalues - Declareprofession - Written In - Perl Module - List Of - If A - Huge Files - Rule - Name - Rules - P- - String

Published By:Greg London

License Type:Freeware

Date Added:25 October, 2010

Version:1.10

Price:Free

Downloads:15

Size:33.8 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Pooka is an email client written in Java, using the Javamail API. It supports email through the IMAP (connected and disconnected) and POP3 protocols. Outgoing mail is sent using SMTP.

DateAug 12, 2010

Authorakp

Size2.4 MB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

Cornice is a cross-platform image viewer written in Python + wxPython + PIL. It doesnt pretend to be complete, fast, or even useful, but I like it and it is the viewer I use on both Linux and Windows.

DateAug 14, 2010

AuthorAlberto Griggio

Size348.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Multimedia

Rawstudio is an open source raw-image converter written in GTK+. Rawstudio can read and convert RAW-images from many different cameras, including Nikon and Canon. It uses dcraw..

DateOct 31, 2010

AuthorAnders Brander

Size266.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Multimedia

ZWS is a simple Web server written in ZSH. ZWS project requires only a recent version of ZSH (4.2.0 or newer) and some common commands (specifically tr, cut, dd, sed, grep, file, basename, and dirname)..

DateAug 7, 2010

AuthorAdam Chodorowski

Size18.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. Bochs project includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS.

DateAug 24, 2010

AuthorBryce Denney

Size2.6 MB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities