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

[Seq] Remove custom printer/parser for seq.compreg(.ce) ops #6267

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

mortbopet
Copy link
Contributor

Removed in favor of using a generated parser + a couple of custom directives to resolve the optional name and types of the implicit operands.

Removed in favor of using a generated parser + a couple of custom directives to resolve the optional name and types of the implicit operands.
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

Very nice!

Comment on lines +50 to +51
custom<OptionalTypeMatch>(ref(type($data)), ref($resetValue), type($resetValue))
custom<OptionalTypeMatch>(ref(type($data)), ref($powerOnValue), type($powerOnValue))
Copy link
Contributor

Choose a reason for hiding this comment

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

That is pretty clever! I hadn't considered using a custom parser to get some of the optional typing going.

@mortbopet mortbopet merged commit c9aa79b into main Oct 9, 2023
5 checks passed
@darthscsi darthscsi deleted the dev/mpetersen/seq_generated_pp branch June 4, 2024 14:49
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