-
Notifications
You must be signed in to change notification settings - Fork 632
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
Syntax error: [natural] expected after 'Extern' (in [hint]). #17583
Comments
Fixing the example in the header is easy because However, a more involved example where
would be less easy to fix. Indeed, when defining The problem is that when Ideally, keywords should be local to the rules under consideration, but that's some work (maybe not so difficult, but still some work). Or, it could also be checked that the position of Anyway, the specific example reported in the header is fixed in #17589 as well as for Ltac2 (though to fix the |
As suggested by the discussion in #17589, the question is raised of how technical we should be about detection of symbols which have to be declared as keywords for the grammar engine we use. For instance, an alternative direction could be to support more backtracking in the parsing engine. |
Description of the problem
The hint command results in the error
Apparently the use of "2" in quotes in the tactic notation definition makes the parser subsequently fail to recognize 2 as a natural in the hint command. The above code worked in earlier versions of Coq (maybe 8.10?). I would think either the use of "2" in Tactic Notation should be allowed and the Hint command should continue to work, or else this use of a numeral in Tactic Notation should be banned with an error message. The current error message after the Hint command is unhelpful.
Coq Version
8.17.0
The text was updated successfully, but these errors were encountered: