Skip to content

Add expression group transcription to conformance DSL #975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2025

Conversation

nirosys
Copy link
Contributor

@nirosys nirosys commented Jun 9, 2025

Issue #, if available: #935

Description of changes:
Prior to this PR using an expression group within a toplevel clause would fail. The existing code captured the :: for a normal expression group, but due to the DSL's transcription syntax we need to capture #$:: and construct an expression group through the eexp writer.

This PR captures the #$:: notation, and constructs the expression group via the writer.

Two tests were also added to the conformance DSL unit tests to ensure the behavior as well.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Jun 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.87%. Comparing base (c55a796) to head (63b08e1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #975   +/-   ##
=======================================
  Coverage   78.87%   78.87%           
=======================================
  Files         138      138           
  Lines       35637    35637           
  Branches    35637    35637           
=======================================
  Hits        28110    28110           
  Misses       5410     5410           
  Partials     2117     2117           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nirosys nirosys marked this pull request as ready for review June 9, 2025 21:49
.as_sexp()
.unwrap() // Verified above
.iter()
.skip(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is skipping the first element, the #$::, right? If I am correct could you add a comment for posterity, and if I am wrong could you add a comment telling me what is the deal here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that's exactly why. I'll add a comment, good call.

@nirosys nirosys merged commit 2a351cb into amazon-ion:main Jun 12, 2025
29 checks 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.

2 participants