Skip to content

Audit generic "Expected an expression" parser errors #189

Description

@timfennis

Problem

The parser's fallback error, Expected an expression but got '…' instead, is used for several syntactic failures where it may obscure the actual mistake.

Desired outcome

Audit the relevant parse paths, introduce more specific diagnostics where useful, and add regression tests for improved messages.

Location

ndc_parser/src/parser.rs, primary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions