Hi, I'm writing in relation with a CoqIDE issue rocq-prover/rocq#5773.
The _CoqProject file supports a syntax -arg which is not documented in the Coq reference manual but which we fortunately found documented in ProofGeneral. We realized that there are however some ambiguities with this syntax, in particular regarding options which span over several "tokens" of the command line, as e.g. for -arg "-w -notation-overriden", vs -arg -w -notation-overriden, vs one line -arg -w and the next line -arg notation-overriden, etc.
That would be good to be able to document more precisely this syntax and that PG, CoqIDE and coq_makefile parse it consistently. For instance, is -arg intended to take a space-free argument, or, if non space-free, a double-quote surrounded argument? Are single-quote surrounded argument allowed? How to pass an argument which contains quotes, as, if, e.g., I would like to pass -arg '-Q "" Foo'? Etc. In the case of coq_makefile the parsing rules are here. What are the parsing rules for PG?
PS: "Remark" is written using the French spelling here.
Hi, I'm writing in relation with a CoqIDE issue rocq-prover/rocq#5773.
The
_CoqProjectfile supports a syntax-argwhich is not documented in the Coq reference manual but which we fortunately found documented in ProofGeneral. We realized that there are however some ambiguities with this syntax, in particular regarding options which span over several "tokens" of the command line, as e.g. for-arg "-w -notation-overriden", vs-arg -w -notation-overriden, vs one line-arg -wand the next line-arg notation-overriden, etc.That would be good to be able to document more precisely this syntax and that PG, CoqIDE and
coq_makefileparse it consistently. For instance, is-argintended to take a space-free argument, or, if non space-free, a double-quote surrounded argument? Are single-quote surrounded argument allowed? How to pass an argument which contains quotes, as, if, e.g., I would like to pass-arg '-Q "" Foo'? Etc. In the case ofcoq_makefilethe parsing rules are here. What are the parsing rules for PG?PS: "Remark" is written using the French spelling here.