Skip to content

Migrate inline assembly parser failures to structured diagnostics #397

Open

Description

@LunaStev

Tracked by #346.

Why

front/parser/src/parser/asm.rs and the asm-expression parser still report malformed blocks and operands with direct prints. Inline assembly is error-prone, so consistent source-located diagnostics are especially important.

Scope

  • Convert parser failures for missing braces/parentheses, malformed in/out, malformed clobber, and invalid operand syntax.
  • Keep backend constraint validation and target-specific assembly behavior out of scope.
  • Add compact negative parser tests for each converted family.
  • Preserve the current inline assembly grammar.

Completion criteria

  • Converted paths return structured errors without printing.
  • Diagnostics name the asm construct being parsed.
  • Tests cover statement and expression asm forms.
  • Valid existing inline-asm cases remain unchanged.

Activity

  1. added
    enhancement
    good first issue
    needs testing
    on Aug 28, 2026
  2. self-assigned this
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issueneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions