groimp-platform:xl-predicates
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
groimp-platform:xl-predicates [2025/01/10 14:53] – created gaetan | groimp-platform:xl-predicates [2025/01/10 15:38] (current) – [Control flow predicate] gaetan | ||
---|---|---|---|
Line 4: | Line 4: | ||
All of the examples are part of patterns (on the left hand side in rule query, or in expression query %%(**)%% ). | All of the examples are part of patterns (on the left hand side in rule query, or in expression query %%(**)%% ). | ||
+ | |||
+ | **Note**: Some predicate syntax are the same as some production operator syntax. e.g. the path predicates look exactly the same. The operate differently internally thought. But, they have usually the same usage. | ||
==== Simple predicate ==== | ==== Simple predicate ==== | ||
Line 15: | Line 17: | ||
==== Path predicate ==== | ==== Path predicate ==== | ||
+ | | whitespace | get connection with previous node, if any, by a successor edge | | ||
+ | | > | get connection node with previous by a successor edge | | ||
+ | | < | get connection node with previous by a reverse successor edge | | ||
+ | | %%< | ||
+ | | %%---%% | get connection node with previous by a successor edge if there does not yet exist such an edge in either direction | | ||
+ | | %%+>%%, %%<+%%, %%< | ||
+ | | %%/>%%, %%</%%, %%</> | ||
+ | | %%-e-> | ||
+ | | %%-n->%% with a node-valued expression n | get a compound edge with n encoding the edge data | | ||
+ | | %%<-n-%% with a node-valued expression n | as before, but reverse direction | | ||
+ | | [, ] | define the starts and the end of a branch connected subgraph | | ||
==== Control flow predicate ==== | ==== Control flow predicate ==== | ||
+ | |||
+ | These predicates govern the control flow of pattern matching. | ||
+ | |||
+ | | %%' | ||
+ | | %%' | ||
+ | | %% ' |
groimp-platform/xl-predicates.1736517208.txt.gz · Last modified: 2025/01/10 14:53 by gaetan