You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5495 Reporter: Hendrik Tews Assigned to:@diml Status: closed (set by @xavierleroy on 2015-12-11T18:04:37Z) Resolution: fixed Priority: normal Severity: major Version: 3.12.1 Fixed in version: 3.12.1+dev Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues Has duplicate:#5617 Monitored by:@diml@hcarty
Bug description
Camlp4 apparently has problems parsing infix definition that are keywords.
It dies on
let ( or ) l1 l2 = []
or
external (or) : bool -> bool -> bool = "%sequor"
with parse errors.
Note that the external line appears in pervasives.ml[i], which
means that camlp4o cannot parse pervasives.ml[i].
The text was updated successfully, but these errors were encountered:
I thought that the specification allowed uses of infix-keywords, but not their redefinition, and that the current behavior was a non-specified implementation choice. I was wrong: the grammar in the manual allows those special cases as part of the "infix-op" syntactic class, which can be used in a let-definition.
Original bug ID: 5495
Reporter: Hendrik Tews
Assigned to: @diml
Status: closed (set by @xavierleroy on 2015-12-11T18:04:37Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.12.1
Fixed in version: 3.12.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Has duplicate: #5617
Monitored by: @diml @hcarty
Bug description
Camlp4 apparently has problems parsing infix definition that are keywords.
It dies on
let ( or ) l1 l2 = []
or
external (or) : bool -> bool -> bool = "%sequor"
with parse errors.
Note that the external line appears in pervasives.ml[i], which
means that camlp4o cannot parse pervasives.ml[i].
The text was updated successfully, but these errors were encountered: