Skip to content
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

Adds data model for Macros #655

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Conversation

popematt
Copy link
Contributor

@popematt popematt commented Nov 22, 2023

Issue #, if available:

None

Description of changes:

  • One of the commits copy/pastes IonElement into this repo. This is a stopgap solution so that we don't have to use IonValue for template body expressions. Don't bother reviewing the content of this commit because it is just a copy/paste, but feel free to comment on whether you think the copy/paste is a good/bad idea if you have an opinion on the matter.
  • The commit called "Adds data model for macro definitions" is where I would like the most feedback. It adds Macro, TemplateMacro, MacroRef, MacroSignature, TemplateExpression, and more. This model is intended to be used for reading, writing, and evaluating macros.

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

@popematt popematt requested review from zslayton and tgregg November 22, 2023 07:17
@popematt
Copy link
Contributor Author

Marking as draft because there's some style violations I need to sort out in the copy/pasted code.

@popematt popematt marked this pull request as draft November 22, 2023 16:23
@popematt popematt marked this pull request as ready for review November 22, 2023 20:18
Copy link
Contributor

@tgregg tgregg left a comment

Choose a reason for hiding this comment

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

Looks like a good start. Let's merge and iterate.

@popematt popematt merged commit b7af7d6 into amazon-ion:ion-11-encoding Nov 22, 2023
14 of 27 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