Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

  • Create ast package with core AST type definitions (Script, Batch,
    Statement, SelectStatement, QuerySpecification, etc.)
  • Create parser package with Parse function that takes ctx and io.Reader
    and returns ast.Script
  • Add MarshalScript function to serialize AST to JSON format matching
    the expected testdata format
  • Add test using ZeroLengthFile testdata to verify JSON output
  • Remove sample.sql and ast.json from root (cleanup)

- Create ast package with core AST type definitions (Script, Batch,
  Statement, SelectStatement, QuerySpecification, etc.)
- Create parser package with Parse function that takes ctx and io.Reader
  and returns ast.Script
- Add MarshalScript function to serialize AST to JSON format matching
  the expected testdata format
- Add test using ZeroLengthFile testdata to verify JSON output
- Remove sample.sql and ast.json from root (cleanup)
- Update parser test to iterate over all testdata directories
- Each test reads metadata.json to check if it should be skipped
- Add metadata.json with skip:true to all test directories (1022 files)
- Set skip:false for ZeroLengthFile test case only
@kyleconroy kyleconroy merged commit 7541fc0 into main Dec 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants