debian man page for gedcom::grammar

Query: gedcom::grammar

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Gedcom::Grammar(3pm)					User Contributed Perl Documentation				      Gedcom::Grammar(3pm)

NAME
Gedcom::Grammar - a module to manipulate Gedcom grammars Version 1.16 - 24th April 2009
SYNOPSIS
use Gedcom::Grammar; my $st = $grammar->structure("GEDCOM"); my @sgr = $grammar->item("DATE"); my @items = $grammar->valid_items; my $min = $grammar->min; my $max = $grammar->max; my @items = $grammar->items;
DESCRIPTION
A selection of subroutines to handle the grammar of a gedcom file. Derived from Gedcom::Item.
HASH MEMBERS
Some of the more important hash members are: $grammar->{top} The top of the grammar tree. $grammar->{top}{structures} A reference to a hash mapping the names of all structures to the grammar objects.
METHODS
structures my $st = $grammar->structure("GEDCOM"); Return the grammar item of the specified structure, if it exists, or undef. item my @sgr = $grammar->item("DATE"); Return a list of the possible grammar items of the specified sub-item, if it exists. min my $min = $grammar->min; Return the minimum permissible number of $grammar items max my $max = $grammar->max; Return the maximum permissible number of $grammar items items my @items = $grammar->items; Return a list of tags of the grammar's sub-items valid_items my @items = $grammar->valid_items; Return a hash detailing all the valid sub-items of the grammar item. The key is the tag of the sub-item and the value is an array of hashes with three members: grammar => the sub-item grammar min => the minimum permissible number of these sub-items max => the maximum permissible number of these sub-items perl v5.14.2 2012-04-12 Gedcom::Grammar(3pm)
Related Man Pages
yapps(1) - debian
me_util(n) - suse
me_util(n) - osx
tap::parser::grammar5.18(3pm) - mojave
tap::parser::grammar(3pm) - osx
Similar Topics in the Unix Linux Community
Grammar
Awk search for max and min field values
Data stream between min and max
to find min and max value for each column!
Sed -f alternatives?