Ticket #45186

generate_packets.py: Parse input line by line

Eröffnet am: 2022-07-22 00:01 Letztes Update: 2022-07-23 19:18

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

Details

Part of #43927. Apart from C-style multiline/block comments, the packets.def format is entirely line-based; however, current parsing code joins its input into one large string and splits it into lines again multiple times. This meta-ticket is about changing it to do everything on a per-line basis.

Things to note:

  • This will mean that type aliases have to be defined before they're used
  • This will also mean that type aliases can no longer be defined inside packet definitions
  • The current packets.def is not affected by either of those things, but it will break any third-party packets.def which does those things
  • Stripping out multiline /* */ comments while working line-by-line is nontrivial but doable

Steps to implement this (in order):

  • Separate Packet header parsing from the rest of Packet initialization #45187
  • Make PacketsDefinition parse the (cleaned) input line by line #45188
  • Make PacketsDefinition clean the the input line by line #45189

Ticket-Verlauf (3/4 Historien)

2022-07-22 00:01 Aktualisiert von: alienvalkyrie
  • New Ticket "generate_packets.py: Parse input line by line" created
2022-07-22 00:19 Aktualisiert von: alienvalkyrie
  • Details Updated
2022-07-22 00:42 Aktualisiert von: alienvalkyrie
Kommentar

All sub-issues are now in review. Once they are merged, this ticket will be closed.

2022-07-23 19:18 Aktualisiert von: alienvalkyrie
  • Status Update from Offen to Geschlossen
  • Lösung Update from Keine to Gefixt

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden