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

Improve `missing EOF at '_ensures'' syntax error #36

Open
bafain opened this issue Feb 14, 2012 · 1 comment
Open

Improve `missing EOF at '_ensures'' syntax error #36

bafain opened this issue Feb 14, 2012 · 1 comment

Comments

@bafain
Copy link
Member

bafain commented Feb 14, 2012

When _ensures is not used to annotate a function like in the following code:

_ensures true

The same applies to the annotations _requires when not used to annotate a function and _invariant when not used to annotate a loop.

@jspam
Copy link
Member

jspam commented Feb 14, 2012

That error seems to be shown every time the parser comes across a token it cannot parse in that context. So a general error message such as This statement does not belong here would be sufficient.

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

4 participants