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

Fix parsing for theories, specifications and user guides beginning with empty line/comment #180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

janheuer
Copy link
Collaborator

@janheuer janheuer commented Jan 9, 2025

Fixes #127

Adds tests for theories, specifications and user guides that begin with empty lines or comments. For theories this is only a problem if the first formula has a prefix, i.e. negation or quantification. For programs I did not find any cases where an empty line or comment as the beginning leads to an error.

Modifying the respective rule by adding (WHITESPACE | COMMENT)? ~ as a prefix fixes this issue.

@janheuer janheuer changed the title Fix parsing for theories, specifications and user guides beginning with empty line/comment (issue #127) Fix parsing for theories, specifications and user guides beginning with empty line/comment Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Programs, specs, can't begin with comments or new lines
1 participant