The first part of the file consists of component definitions, the second consists of the net connections.
Using a shorthand ebnf style notation:
|netlist file||<component definitions><net definitions>|
|net definitions||'('<net name><net list>')'|
|net list||<designator><pin number>*|
RJ11 6 PIN
The net name will be unique, in a non contiguous ordered sequence. The initial version of Schematic Capture generates NETxxxxx where is the interconnect segment serial number. A net list consists of one or more net segments so the contrived net name will skip. This may be enhanced to read VCC or Address bus 10.
I'll use *.net.