Commit Graph

2 Commits

Author SHA1 Message Date
Peterino2 f910526948 Add pretty-printed JSON output using Zig's std.json formatter
- Parse generated JSON with std.json.parseFromSlice
- Re-format with 2-space indentation using std.json.fmt
- Produces readable, properly formatted JSON output
- All JSON files now have consistent formatting
2026-01-22 17:02:38 -08:00
Peterino2 b7ec134b0e Implement JSON output feature for SDL parser
- Add --generate-json flag to output structured JSON representation
- JSON includes all parsed types: opaques, typedefs, function pointers,
  enums, structs, unions, flags, and functions
- Preserves doc comments and inline comments in JSON output
- Proper JSON escaping for special characters
- Tested with SDL_gpu.h and test_small.h
- Validates as proper JSON format
2026-01-22 15:30:02 -08:00