Skip to content

Commit 88857e0

Browse files
committed
Added example of short syntax section
1 parent f3e9dac commit 88857e0

File tree

3 files changed

+143
-1
lines changed

3 files changed

+143
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# MATCH clause short
2+
3+
<simple match statement> ::=
4+
"MATCH" <graph pattern>
5+
6+
<graph pattern> ::=
7+
[ <match mode> ] link:/cypher-manual/25/patterns/reference/#path-patterns[<path pattern>] [ { "," link:/cypher-manual/25/patterns/reference/#path-patterns[<path pattern>] }... ] [ <graph pattern where clause> ]
8+
9+
<match mode> ::=
10+
"REPEATABLE" { "ELEMENT" [ "BINDINGS" ] | "ELEMENTS" }
11+
| "DIFFERENT" { "RELATIONSHIP" [ "BINDINGS" ] | "RELATIONSHIPS" }
12+
13+
link:/cypher-manual/25/patterns/reference/#path-patterns[<path pattern>] ::=
14+
[ link:/cypher-manual/25/syntax/naming/[<identifier>] "=" ] [ <path pattern prefix> ] <path pattern expression>
Lines changed: 113 additions & 0 deletions
Loading

modules/ROOT/pages/clauses/match.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,4 +627,19 @@ include::example$MATCH.bnf[]
627627

628628
=== Railroad diagrams
629629

630-
image::railroad/railroad-all.svg["Railroad diagram example", opts=interactive]
630+
Non-interactive
631+
632+
image::railroad/railroad-all.svg["Railroad diagram example"]
633+
634+
== Syntax (short)
635+
636+
[source, bnf, subs="+macros"]
637+
----
638+
include::example$MATCH-short.bnf[]
639+
----
640+
641+
=== Railroad diagrams
642+
643+
Interactive (clickable links)
644+
645+
image::railroad/railroad-all-short.svg["Railroad diagram example", opts=interactive]

0 commit comments

Comments
 (0)