Menhir:How to use inline to add locations?

It seems to me that the error you have here is related to your ocaml code, and that the menhir part is correct.
Reading more carefully, start is supposed to return a lexpr but actually return a raw_expr, you should also add located to it. If this is not correct, having the location of the error would be quite helpful.

1 Like