Re: Gedcom example

Last version, I must go to bed. Here is a version with @id and @link, 
linking the records together.
gedcom: record*.
record: -"0 ", -field, f1*.
-f1: -"1 ", field, f2*.
-f2: -"2 ", field, f3*.
-f3: -"3 ", field, f4*.
-f4: -"4 ", field, f5*.
-f5: -"5 ", field, f6*.
-f6: -"6 ", field, f7*.
-f7: -"7 ", field, f8*.
-f8: -"8 ", field, f9*.
-f9: -"9 ", field.
field: name, (text; link)?, -#a;
        id, -" ", name, -#a.
@id: -"@", -name, -"@".
@text: -" ", ~["@"], ~[#a]*.
@link: -" ", -"@", -name, -"@".
@name: ["A"-"Z"; "0"-"9"]+.
#
0 HEAD
1 GEDC
2 VERS 5.5.5
2 FORM LINEAGE-LINKED
3 VERS 5.5.5
1 CHAR UTF-8
1 SOUR GS
2 NAME GEDCOM Specification
2 VERS 5.5.5
2 CORP gedcom.org
3 ADDR
4 CITY LEIDEN
3 WWW www.gedcom.org
1 DATE 2 Oct 2019
2 TIME 0:00:00
1 FILE 555Sample.ged
1 LANG English
1 SUBM @U1@
0 @U1@ SUBM
1 NAME Reldon Poulson
1 ADDR 
2 ADR1 1900 43rd Street West
2 CITY Billings
2 STAE Montana
2 POST 68051
2 CTRY United States of America
1 PHON +1 (406) 555-1232
0 @I1@ INDI
1 NAME Robert Eugene /Williams/
2 SURN Williams
2 GIVN Robert Eugene
1 SEX M
1 BIRT
2 DATE 2 Oct 1822
2 PLAC Weston, Madison, Connecticut, United States of America
2 SOUR @S1@
3 PAGE Sec. 2, p. 45
1 DEAT
2 DATE 14 Apr 1905
2 PLAC Stamford, Fairfield, Connecticut, United States of America
1 BURI
2 PLAC Spring Hill Cemetery, Stamford, Fairfield, Connecticut, United 
States of America
1 FAMS @F1@
1 FAMS @F2@
1 RESI 
2 DATE from 1900 to 1905
0 @I2@ INDI
1 NAME Mary Ann /Wilson/
2 SURN Wilson
2 GIVN Mary Ann
1 SEX F
1 BIRT
2 DATE BEF 1828
2 PLAC Connecticut, United States of America
1 FAMS @F1@
0 @I3@ INDI
1 NAME Joe /Williams/
2 SURN Williams
2 GIVN Joe
1 SEX M
1 BIRT
2 DATE 11 Jun 1861
2 PLAC Idaho Falls, Bonneville, Idaho, United States of America
1 FAMC @F1@
1 FAMC @F2@
2 PEDI adopted
1 ADOP 
2 DATE 16 Mar 1864
0 @F1@ FAM
1 HUSB @I1@
1 WIFE @I2@
1 CHIL @I3@
1 MARR
2 DATE Dec 1859
2 PLAC Rapid City, Pennington, South Dakota, United States of America
0 @F2@ FAM
1 HUSB @I1@
1 CHIL @I3@
0 @S1@ SOUR
1 DATA
2 EVEN BIRT, DEAT, MARR
3 DATE FROM Jan 1820 TO DEC 1825
3 PLAC Madison, Connecticut, United States of America
2 AGNC Madison County Court
1 TITL Madison County Birth, Death, and Marriage Records
1 ABBR Madison BMD Records
1 REPO @R1@
2 CALN 13B-1234.01
0 @R1@ REPO
1 NAME Family History Library
1 ADDR
2 ADR1 35 N West Temple Street
2 CITY Salt Lake City
2 STAE Utah
2 POST 84150
2 CTRY United States of America
0 TRLR
#

<gedcom>
    <record name='HEAD'>
       <field name='GEDC'/>
       <field name='VERS' text='5.5.5'/>
       <field name='FORM' text='LINEAGE-LINKED'/>
       <field name='VERS' text='5.5.5'/>
       <field name='CHAR' text='UTF-8'/>
       <field name='SOUR' text='GS'/>
       <field name='NAME' text='GEDCOM Specification'/>
       <field name='VERS' text='5.5.5'/>
       <field name='CORP' text='gedcom.org'/>
       <field name='ADDR'/>
       <field name='CITY' text='LEIDEN'/>
       <field name='WWW' text='www.gedcom.org'/>
       <field name='DATE' text='2 Oct 2019'/>
       <field name='TIME' text='0:00:00'/>
       <field name='FILE' text='555Sample.ged'/>
       <field name='LANG' text='English'/>
       <field name='SUBM' link='U1'/>
    </record>
    <record id='U1' name='SUBM'>
       <field name='NAME' text='Reldon Poulson'/>
       <field name='ADDR' text='
2 ADR1 1900 43rd Street West'/>
       <field name='CITY' text='Billings'/>
       <field name='STAE' text='Montana'/>
       <field name='POST' text='68051'/>
       <field name='CTRY' text='United States of America'/>
       <field name='PHON' text='+1 (406) 555-1232'/>
    </record>
    <record id='I1' name='INDI'>
       <field name='NAME' text='Robert Eugene /Williams/'/>
       <field name='SURN' text='Williams'/>
       <field name='GIVN' text='Robert Eugene'/>
       <field name='SEX' text='M'/>
       <field name='BIRT'/>
       <field name='DATE' text='2 Oct 1822'/>
       <field name='PLAC' text='Weston, Madison, Connecticut, United States 
of America'/>
       <field name='SOUR' link='S1'/>
       <field name='PAGE' text='Sec. 2, p. 45'/>
       <field name='DEAT'/>
       <field name='DATE' text='14 Apr 1905'/>
       <field name='PLAC' text='Stamford, Fairfield, Connecticut, United 
States of America'/>
       <field name='BURI'/>
       <field name='PLAC' text='Spring Hill Cemetery, Stamford, Fairfield, 
Connecticut, United States of America'/>
       <field name='FAMS' link='F1'/>
       <field name='FAMS' link='F2'/>
       <field name='RESI' text='
2 DATE from 1900 to 1905'/>
    </record>
    <record id='I2' name='INDI'>
       <field name='NAME' text='Mary Ann /Wilson/'/>
       <field name='SURN' text='Wilson'/>
       <field name='GIVN' text='Mary Ann'/>
       <field name='SEX' text='F'/>
       <field name='BIRT'/>
       <field name='DATE' text='BEF 1828'/>
       <field name='PLAC' text='Connecticut, United States of America'/>
       <field name='FAMS' link='F1'/>
    </record>
    <record id='I3' name='INDI'>
       <field name='NAME' text='Joe /Williams/'/>
       <field name='SURN' text='Williams'/>
       <field name='GIVN' text='Joe'/>
       <field name='SEX' text='M'/>
       <field name='BIRT'/>
       <field name='DATE' text='11 Jun 1861'/>
       <field name='PLAC' text='Idaho Falls, Bonneville, Idaho, United 
States of America'/>
       <field name='FAMC' link='F1'/>
       <field name='FAMC' link='F2'/>
       <field name='PEDI' text='adopted'/>
       <field name='ADOP' text='
2 DATE 16 Mar 1864'/>
    </record>
    <record id='F1' name='FAM'>
       <field name='HUSB' link='I1'/>
       <field name='WIFE' link='I2'/>
       <field name='CHIL' link='I3'/>
       <field name='MARR'/>
       <field name='DATE' text='Dec 1859'/>
       <field name='PLAC' text='Rapid City, Pennington, South Dakota, 
United States of America'/>
    </record>
    <record id='F2' name='FAM'>
       <field name='HUSB' link='I1'/>
       <field name='CHIL' link='I3'/>
    </record>
    <record id='S1' name='SOUR'>
       <field name='DATA'/>
       <field name='EVEN' text='BIRT, DEAT, MARR'/>
       <field name='DATE' text='FROM Jan 1820 TO DEC 1825'/>
       <field name='PLAC' text='Madison, Connecticut, United States of 
America'/>
       <field name='AGNC' text='Madison County Court'/>
       <field name='TITL' text='Madison County Birth, Death, and Marriage 
Records'/>
       <field name='ABBR' text='Madison BMD Records'/>
       <field name='REPO' link='R1'/>
       <field name='CALN' text='13B-1234.01'/>
    </record>
    <record id='R1' name='REPO'>
       <field name='NAME' text='Family History Library'/>
       <field name='ADDR'/>
       <field name='ADR1' text='35 N West Temple Street'/>
       <field name='CITY' text='Salt Lake City'/>
       <field name='STAE' text='Utah'/>
       <field name='POST' text='84150'/>
       <field name='CTRY' text='United States of America'/>
    </record>
    <record name='TRLR'/>
</gedcom>

Received on Tuesday, 2 August 2022 21:37:36 UTC