Skip to content

Commit dd74857

Browse files
author
Petra Selmer
committed
Reinstated pre-parser suggestions
* Now in Appendix * "bind" -> "class" (former deprecated) * Added example
1 parent e908196 commit dd74857

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cip/1.accepted/CIP2017-01-18-configurable-pattern-matching-semantics.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,14 @@ This section presents a few such functions:
347347
* `toPath(p)`: returns `toTrail(p)` if `p` contains no duplicate nodes at all or if the only two duplicate nodes are the source and target nodes of `p`, `null` otherwise.
348348
* `toCircuit(p)`: returns `toTrail(p)` if `isClosed(p)` is true, `null` otherwise.
349349
* `toCycle(p)`: returns `toPath(p)` if `isClosed(p)` is true, `null` otherwise.
350+
351+
[appendix]
352+
== Pre-parser options
353+
354+
It is suggested that a conforming implementation should provide pre-parser options for defining the default pattern variable class as well as the default pattern match mode:
355+
356+
* `match=one of(all|all-shortest|shortest)` for configuring a different default pattern match mode
357+
* `match=one of(walks|trails|paths)` for configuring a different default pattern variable class
358+
* `match=one of(all|all-shortest|shortest)`, `-`, `one of(walks|trails|paths)` for configuring both a different default pattern match mode and a different default pattern variable class
359+
360+
An example of the latter would be `match=all-shortest-trails`.

0 commit comments

Comments
 (0)