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 demo of using a macro to generate specialized macros #141

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

popematt
Copy link
Contributor

Issue #, if available:

It's a bit of a stretch, but it could be considered part of #88

Description of changes:

Adds a directory for demos and a test case demonstrating using a macro to generate macros.

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

// SPDX-License-Identifier: Apache-2.0

(ion_1_1 "a macro that can create a monomorphized variant of the values macro"
(mactab (macro tagless_values (mod_or_type type?)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add an example that shows this being invoked with two arguments?

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.

Cool

@popematt popematt merged commit fc2ed0d into amazon-ion:main Nov 27, 2024
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.

2 participants