Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
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
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.