Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG accepts newlines in Coq notations while this is forbidden #362

Open
erikmd opened this issue Jun 1, 2018 · 0 comments
Open

PG accepts newlines in Coq notations while this is forbidden #362

erikmd opened this issue Jun 1, 2018 · 0 comments

Comments

@erikmd
Copy link
Member

erikmd commented Jun 1, 2018

I just noticed that PG removes newlines sometimes in a slightly aggressive way, so that is possible to parse a Coq file that doesn't compile, but is accepted by PG.

Minimal working example (mwe.v)

Parameter Under : forall (I : Type) (i : I) (R : Type), R -> R -> Prop.
Notation "i : I
−−−−−−−−−−−−−−−−−−−−−−−−−−−−
x" := (@Under I i _ x _) (at level 200, format
"'[v' i  :  I '/'
−−−−−−−−−−−−−−−−−−−−−−−−−−−−
'/' x ']'", x at level 200).

Actual result

$ coqc mwe.v
File "./mwe.v", line 2, characters 0-279:
Error: x is unbound in the notation.

Expected result

PG also rejects this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant