camlp4o dies on infix definition (or) #5495
Original bug ID: 5495
Camlp4 apparently has problems parsing infix definition that are keywords.
let ( or ) l1 l2 = 
external (or) : bool -> bool -> bool = "%sequor"
with parse errors.
Note that the external line appears in pervasives.ml[i], which
The text was updated successfully, but these errors were encountered:
Comment author: @gasche
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.