Skip to content

Make pretty printer fail on compilation errors#1095

Closed
Cokemonkey11 wants to merge 1 commit intowurstscript:masterfrom
Cokemonkey11:feature/pretty-printer-fail-on-errors
Closed

Make pretty printer fail on compilation errors#1095
Cokemonkey11 wants to merge 1 commit intowurstscript:masterfrom
Cokemonkey11:feature/pretty-printer-fail-on-errors

Conversation

@Cokemonkey11
Copy link
Collaborator

  • Modified PrettyUtils to check for compilation errors before formatting
  • Added validation step that runs compiler.checkProg() after parsing
  • Throws RuntimeException with error details if compilation errors found
  • Added comprehensive test coverage for both valid and invalid code
  • Ensures pretty printer fails fast with clear error messages

- Modified PrettyUtils to check for compilation errors before formatting
- Added validation step that runs compiler.checkProg() after parsing
- Throws RuntimeException with error details if compilation errors found
- Added comprehensive test coverage for both valid and invalid code
- Ensures pretty printer fails fast with clear error messages

Co-authored-by: Ona <no-reply@ona.com>
@Cokemonkey11
Copy link
Collaborator Author

As discussed, there's a lot that's directionally wrong about this

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.

1 participant