gedcom-0.2.0.0: Parser for the GEDCOM genealogy file format.

Copyright(c) Callum Lowcay 2017
LicenseBSD3
Maintainercwslowcay@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Data.Gedcom.Internal.Parser

Description

These parsers extract the GEDCOM records from the raw syntax tree.

Synopsis

Documentation

parseGedcom :: GDRoot -> (Either GDError Gedcom, Map GDXRefID Dynamic) Source #

Parse a Gedcom value from the raw GEDCOM syntax tree.

parseBoolTag :: GDTag -> StructureParser Bool Source #

Parse a boolean value.

parseWordTag :: GDTag -> StructureParser Word Source #

Parse a Word value.

parseTextTag :: GDTag -> StructureParser Text Source #

Extract the text from a tag.

parseListTag :: GDTag -> StructureParser [Text] Source #

Extract a list of comma separated values from a tag.

parseTag Source #

Arguments

:: Typeable a 
=> GDTag

The tag to parse.

-> NoLinkHandler a

A handler for the tag

-> StructureParser (GDRef a) 

Parse a tag which is either a GEDCOM structure, or a reference to the expected GEDCOM structure.

parseLinkTag :: Typeable a => GDTag -> StructureParser (GDRef a) Source #

Parse a tag which must contain a cross reference to another structure, not the structure itself.

parseNoLinkTag Source #

Arguments

:: Typeable a 
=> GDTag

The tag to parse.

-> NoLinkHandler a

A handler for the tag.

-> StructureParser a 

Parse a tag which cannot contain a cross reference (i.e. the tag must contain the structure itself, not a reference to another structure).