Skip to content

Improve parser errors around is #409

@john-h-kastner-aws

Description

@john-h-kastner-aws

Category

Other

Describe the feature you'd like to request

There is some room to provide more specific parse errors for malformed is expressions.

To make this issue concrete: is currently parsers expecting a Name for the entity type. If the following text doesn't parse as a Name the user sees a cryptic "expected token" error message (see #176). We could improve these errors message by instead expecting an Expr, and then raising an specific error in the CST to AST conversion if the Expr isn't a Name.

Other parse error improvements improvements are covered by #176, #391, #407

Describe alternatives you've considered

.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.1Features for 3.1feature-requestThis issue requets a substantial new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions