Skip to content

Fix #414: do not use error token in Menhir backend - #415

Merged
andreasabel merged 1 commit into
masterfrom
menhir-error-414
Feb 10, 2022
Merged

andreasabel merged 1 commit into
masterfrom
menhir-error-414

Conversation

@andreasabel

Copy link
Copy Markdown
Member

Fix #414: do not use error token in Menhir backend, rather catch ParXXX.Error.

The semantics of the error token changed in Menhir-2021-12-30 and is no longer compatible to OcamlYacc.
Basically, its use is deprecated for just throwing a parse error.

This PR keeps the error rule for the OcamlYacc backend, for backwards-compatibility of the API.

…XX.Error

The semantics of the error token changed in Menhir-2021-12-30 and is
no longer compatible to OcamlYacc.
@andreasabel andreasabel added parser Issues concerning parser generating entrypoints Concerning entry points for the parser and the `entrypoints` directive Ocaml/Menhir labels Feb 10, 2022
@andreasabel andreasabel added this to the 2.9.4 milestone Feb 10, 2022
@andreasabel andreasabel self-assigned this Feb 10, 2022
@andreasabel andreasabel changed the title Fix #414: do not use error token in Menhir backend, rather catch ParXXX.Error Fix #414: do not use error token in Menhir backend Feb 10, 2022
@andreasabel
andreasabel merged commit a75cce9 into master Feb 10, 2022
@andreasabel
andreasabel deleted the menhir-error-414 branch February 10, 2022 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

entrypoints Concerning entry points for the parser and the `entrypoints` directive Ocaml/Menhir parser Issues concerning parser generating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error location missing with recent menhir (starting with 2021-12-30 release)

1 participant