camlp4 incompatible with open! #6175
Original bug ID: 6175
The new open! syntax does not appear to work with camlp4.
Steps to reproduce
here's an example (using rc2, which I assume is the same as 4.01.0):
Unknown directive `require'.
Comment author: yminsky
As a more general note, I wonder if there should be more testing against camlp4 for this kind of thing. It seems reasonably predictable that new syntactic constructs like this will break camlp4. One could imagine a test-suite that has a file containing examples of a wide variety of OCaml syntactic constructs, to which new ones would get added as the language is extended. One could then make sure that this file compiles cleanly under camlp4.
Comment author: @alainfrisch
Indeed, it would be useful to have a module exercising all the grammar rules. Ideally, we should either do some coverage check to ensure that all (non-error) productions in parser.mly are used, or generate the code automatically from the parser specification.