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> |
| component definitions | '['<designator><footprint><description><""><""><"">']' |
| net definitions | '('<net name><net list>')' |
| net list | <designator><pin number>* |
| [ CONN1 RJ11_AMP_LO RJ11 6 PIN ] [ L3 SM1206 INDUCTOR ] [ R28 SM0805 100R ] ... [ ... ( |
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.