-
Notifications
You must be signed in to change notification settings - Fork 127
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
DCG compilation: Unexpected warning when using unsupported grammar control construct #2675
Comments
I think the root cause is that throwing an exception during term expansion is treated as |
hurufu
added a commit
to hurufu/scryer-prolog
that referenced
this issue
Dec 5, 2024
Some DCG constructs aren't supported and can't be expanded, here we remove offending DCG rule and don't compile it at all – in a similar fashion to what we do when incorrect goal was found – whole predicate isn't getting compiled. Fixes mthom#2675
hurufu
added a commit
to hurufu/scryer-prolog
that referenced
this issue
Dec 15, 2024
Some DCG constructs aren't supported and can't be expanded, here we remove offending DCG rule and don't compile it at all – in a similar fashion to what we do when incorrect goal was found – whole predicate isn't getting compiled. Fixes mthom#2675
hurufu
added a commit
to hurufu/scryer-prolog
that referenced
this issue
Dec 22, 2024
Some DCG constructs aren't supported and can't be expanded, here we remove offending DCG rule and don't compile it at all – in a similar fashion to what we do when incorrect goal was found – whole predicate isn't getting compiled. Fixes mthom#2675
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
discontiguous_dcg_error.pl
comprising:I get:
The error is expected. The warning is unexpected, because the clauses are not discontiguous.
Low priority.
The text was updated successfully, but these errors were encountered: