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

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 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