Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Add support for a padded directive#305

Draft
lmanini wants to merge 3 commits intohuff-language:mainfrom
lmanini:padded-macro
Draft

Add support for a padded directive#305
lmanini wants to merge 3 commits intohuff-language:mainfrom
lmanini:padded-macro

Conversation

@lmanini
Copy link
Copy Markdown

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant