How no-tn-nag/flightparser works
FlightParser is a C# console application that reads a PDF, identifies operational-flight-plan and crew-briefing pages, and emits either parsed records or combined flights as readable text or JSON. The CLI opens the document and coordinates page parsing, flight-number matching, and output; the two parsers extract their respective fields, while Flight represents the combined result. The excerpts show the runtime flow and PDF library usage; the README does not document further capabilities, and no storage or external service integration is shown.
Main entry points: Program.cs CLI coordinator · Flight.cs Flight matcher · OperationalFlightPlan.cs OFP parser · CrewBriefing.cs Crew parser
Components 6
CLI workflow
- CLI coordinator
Program.cs
PDF parsing
- OFP parser
Models/OperationalFlightPlan.cs - Crew parser
Models/CrewBriefing.cs
Flight data
- Flight matcher
Models/Flight.cs
Other components
- CLI user
- PdfPig library
Connections 10
- CLI user → CLI coordinator: provides arguments
Program.cs - CLI coordinator → PdfPig library: opens PDF
Program.cs - CLI coordinator → OFP parser: finds OFP pages
Program.cs - CLI coordinator → Crew parser: finds crew pages
Program.cs - OFP parser → PdfPig library: reads page words
Models/OperationalFlightPlan.cs - Crew parser → PdfPig library: reads page words
Models/CrewBriefing.cs - CLI coordinator → Flight matcher: matches and assembles
Program.cs - Flight matcher → Crew parser: holds briefing
Models/Flight.cs - Flight matcher → OFP parser: holds flight plan
Models/Flight.cs - CLI coordinator → CLI user: prints text or JSON
Program.cs