Skip to content
New issue

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

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

Already on GitHub? # to your account

Added support for designated range initializers #53

Merged
merged 1 commit into from
Aug 9, 2020

Conversation

t11230
Copy link
Contributor

@t11230 t11230 commented Aug 8, 2020

Resolves #22

Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! This looks good to me for the most part. Please address the Flake8 failure and respond to my one comment. After that, it's ready to go in.

ast = parser.parse(src)
ast.show()
gen = ext_c_generator.GnuCGenerator()
print(gen.visit(ast))
Copy link
Owner

Choose a reason for hiding this comment

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

I know none of the other tests do this, but it would be useful to test this as an identical parser/generator round-trip. If you're game, OK, otherwise, also fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! I'll take a look at getting this to round-trip.

@t11230
Copy link
Contributor Author

t11230 commented Aug 8, 2020

Do you mind taking a look at the Flake8 log? I haven't used Flake8 before so I'm not really sure where the error is coming from.

@inducer
Copy link
Owner

inducer commented Aug 9, 2020

Do you mind taking a look at the Flake8 log?

fbc5d8e

- Also added ability to round-trip test cases
@t11230 t11230 force-pushed the designated-initializers branch from 780fec8 to 44036f7 Compare August 9, 2020 13:32
@inducer
Copy link
Owner

inducer commented Aug 9, 2020

Awesome. Thanks for working on that! LGTM, in it goes.

@inducer inducer merged commit 9365b81 into inducer:master Aug 9, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GNU C array init with "..." not supported
2 participants