Merge pull request #2681 from hurufu/remove-dcgs-that-have-failed-to-expand
Remove DCGs that have thrown an exception during term expansion
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
:- use_module(library(dcgs)).
|
||||
|
||||
d -->
|
||||
( { true } -> []
|
||||
; { true } -> []
|
||||
).
|
||||
@@ -0,0 +1 @@
|
||||
error(representation_error(dcg_body),[culprit-({true}->[])]).
|
||||
@@ -0,0 +1,7 @@
|
||||
# issue 2675
|
||||
args = [
|
||||
"-f",
|
||||
"--no-add-history",
|
||||
"-g", "halt",
|
||||
"main.pl"
|
||||
]
|
||||
Reference in New Issue
Block a user