Gedcom example

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

Received on Tuesday, 2 August 2022 21:13:11 UTC