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

Variable names get confused with arithmetic operations #543

Open
aannleax opened this issue Oct 25, 2024 · 0 comments
Open

Variable names get confused with arithmetic operations #543

aannleax opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
Parser Rule-Parser-Related Issue
Milestone

Comments

@aannleax
Copy link
Member

The following rule produces an unsafe-variable error:

r(?X-1) :- a(?X).

This is because X-1 is a valid variable name, so the parser does not recognize this as an subtraction.

@aannleax aannleax added the Parser Rule-Parser-Related Issue label Oct 25, 2024
@aannleax aannleax added this to the Release 0.7.0 milestone Oct 25, 2024
@aannleax aannleax self-assigned this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parser Rule-Parser-Related Issue
Projects
Status: Todo
Development

No branches or pull requests

1 participant