Skip to content

Remove Reject from Hocc parser API#336

Merged
jasone merged 1 commit into
BranchTaken:mainfrom
jasone:reject
May 27, 2026
Merged

Remove Reject from Hocc parser API#336
jasone merged 1 commit into
BranchTaken:mainfrom
jasone:reject

Conversation

@jasone

@jasone jasone commented May 27, 2026

Copy link
Copy Markdown
Contributor

Rather than encoding a syntax error as a Reject status, return an Error result to indicate rejection. This has the advantage of leaving the parser in its original state upon syntax error, which simplifies diagnosis/repair code paths, e.g. the expect function.

Rather than encoding a syntax error as a `Reject` status, return an `Error`
result to indicate rejection. This has the advantage of leaving the parser in
its original state upon syntax error, which simplifies diagnosis/repair code
paths, e.g. the `expect` function.
@jasone jasone self-assigned this May 27, 2026
@jasone jasone merged commit 63ec930 into BranchTaken:main May 27, 2026
4 checks passed
@jasone jasone deleted the reject branch May 27, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant