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
Camlp4 accepts incorrect syntax #4513
Original bug ID: 4513
The following demonstrates a weird preprocessing issue with invalid OCaml-code:
camlp4o -str "let () = if true then then () else ()"
The above will print the valid OCaml code one might expect. It's nice that the preprocessor attempts to transform the code into one that the user may have intended, though this raises the questions whether it always has the same notion of correctness as the user... ;-)