The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gedcom::Grammar - a class to manipulate Gedcom grammars

Version 1.02 - 5th May 1999

SYNOPSIS

  use Gedcom::Grammar;

  my $structures = $grammar->structures()
  my @children = $grammar->valid_children($structures)

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->{structure}

The name of the grammar structure.

METHODS

structures

  my $structures = $grammar->structures()

Return a reference to a hash mapping the names of all child structures to the grammar objects.

valid_children

  my @children = $grammar->valid_children($structures)

Return an array of all the valid children of the grammar item.