Skip to content

[#665] Add optional parameter to make AND operator consider last clause as a NOT#1103

Open
andre-senna wants to merge 2 commits into
masterfrom
senna-665-1
Open

[#665] Add optional parameter to make AND operator consider last clause as a NOT#1103
andre-senna wants to merge 2 commits into
masterfrom
senna-665-1

Conversation

@andre-senna
Copy link
Copy Markdown
Contributor

WIP towards #665

In this PR we added an optional flag to AND operator constructor to define that the last clause is to be considered a NOT clause. For instance AND(A, B, C) is considered as A AND B AND (NOT C).

Regarding #665 , we are still missing allowing ANDNOT as a token (or a valid metta tag) in a PM query. I.e. after this PR we have the required functionality in the AND operator but we still don't have means to make a query with ANDNOT in the pattern matching agent. This will be implemented in a follow up PR.

@andre-senna andre-senna self-assigned this May 12, 2026
@andre-senna andre-senna requested a review from ccgsnet May 12, 2026 16:02
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.

1 participant