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

No matching clause for goal: zeroOrMore(or,dataConjunction(A),B,C) #31

Open
pmoura opened this issue Sep 11, 2019 · 0 comments
Open

No matching clause for goal: zeroOrMore(or,dataConjunction(A),B,C) #31

pmoura opened this issue Sep 11, 2019 · 0 comments

Comments

@pmoura
Copy link

pmoura commented Sep 11, 2019

In the following grammar rule, the zeroOrMore//2 call will always fail given that all clauses for the zeroOrMore/4 predicate expect a list in the second argument:

dataRange(unionOf([C1,C2|CL])) --> dataConjunction(C1),[or],!,dataConjunction(C2),zeroOrMore(or,dataConjunction(CL)).

Found by the Logtalk linter.

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

No branches or pull requests

1 participant