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

Add support for a padded directive #305

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lmanini
Copy link

@lmanini lmanini commented Oct 22, 2023

Overview

A PR to support the request from issue #301.

Made minimal changes to add support for a padded keyword, adding it to the langauge grammar and allow for a macro to have a #define padded directive within it.
The parser's Statement generation LGTM upon a manual inspection of the (failing) added test in huff_parser/tests/padded.rs, although I'm currently stuck, as I don't how to handle the generated stop opcodes ast Spans, given they're not present in the source file. What should we set their Span to?

Looking for suggestions on how to solve this issue and feedback on the work done sor far!

@lmanini lmanini marked this pull request as ready for review October 31, 2023 15:45
@lmanini lmanini marked this pull request as draft October 31, 2023 15:46
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.

None yet

1 participant