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

asm parser lacking label parse functionality #3072

Open
badumbatish opened this issue Jun 27, 2024 · 0 comments
Open

asm parser lacking label parse functionality #3072

badumbatish opened this issue Jun 27, 2024 · 0 comments

Comments

@badumbatish
Copy link
Contributor

In rust's asm.rs I misunderstood eat_keyword(label) for "tracks if there is any number that is followed by a :" to be a label. The former is explicitly a label and the latter is a local label.

The former needs to be parsed explicitly and put in a hashmap or set to be expanded later.

The latter can be implicitly parsed via parse_format_strings, it is passed straight into the assembler.

For docs
rust zulip asm discussion
arm's docs on local label
rust's asm goto
rust's tracking issue

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

No branches or pull requests

2 participants