Skip to content

Elaborate object query feature - #1631

Merged
dg0yt merged 5 commits into
masterfrom
object-query
May 19, 2020
Merged

Elaborate object query feature#1631
dg0yt merged 5 commits into
masterfrom
object-query

Conversation

@dg0yt

Copy link
Copy Markdown
Member

Add negation and symbol expressions. Document language in BNF.

@dg0ytdg0yt linked an issue May 19, 2020 that may be closed by this pull request
dg0yt added 5 commits May 19, 2020 19:54
Factor out utility class for tracking expression nesting.
Modify parsing state setup and teardown:
- Finish "AND" expression after search term and after right paren.
- Finish object query expression on hitting "OR".
While it was already possible to construct ObjectQuery for nullptr
Symbol tests, this was neither tested nor handled in toString()
(nullptr dereference).
By fixing this particular type of query, we get the cheapest
possible valid ObjectQuery (no allocation), suitable for
serving as placeholder where needed.
Support the form which is already used by ObjectQuery::toString():
SYMBOL "Code"
Together with AND and OR, we now implement all basic operations of
Boolean algebra. Round brackets allow to express secondary
operations. Resolves sub-issue discussed in GH-1512.
Sign up for freeto 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.

See all objects with selected symbol one after the other

1 participant

@dg0yt