All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ammar.M01.source-code.start.xml Maven / Gradle / Ivy

There is a newer version: 1.0.0-M01
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2015-2016 "Neo Technology,"
    Network Engine for Objects in Lund AB [http://neotechnology.com]

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<!DOCTYPE grammar [
  <!ENTITY WS "<non-terminal ref='WS'/>">
  <!ENTITY SP "<non-terminal ref='SP'/>">
  <!ENTITY var "<non-terminal ref='Variable'/>">
]>
<grammar language="Cypher Start Clause"
  xmlns="http://opencypher.org/grammar"
  xmlns:rr="http://opencypher.org/railroad"
  xmlns:oc="http://opencypher.org/opencypher">

  <!-- / START \ -->

  <production name="Start" oc:legacy="true">
    START &SP;
    <non-terminal ref="StartPoint"/>
    <repeat>&WS;,&WS;<non-terminal ref="StartPoint"/></repeat>
    <opt><non-terminal ref="Where"/></opt>
  </production>

  <production name="StartPoint" rr:inline="true" oc:legacy="true">
    &var; &WS; = &WS; <non-terminal ref="Lookup"/>
  </production>

  <production name="Lookup" rr:inline="true" oc:legacy="true">
    <alt>
      <non-terminal ref="NodeLookup"/>
      <non-terminal ref="RelationshipLookup"/>
    </alt>
  </production>

  <production name="NodeLookup" rr:inline="true" oc:legacy="true">
    NODE
    <alt>
      <non-terminal ref="IdentifiedIndexLookup"/>
      <non-terminal ref="IndexQuery"/>
      <non-terminal ref="IdLookup"/>
    </alt>
  </production>

  <production name="RelationshipLookup" rr:inline="true" oc:legacy="true">
    <alt>RELATIONSHIP REL</alt>
    <alt>
      <non-terminal ref="IdentifiedIndexLookup"/>
      <non-terminal ref="IndexQuery"/>
      <non-terminal ref="IdLookup"/>
    </alt>
  </production>

  <production name="IdentifiedIndexLookup" oc:legacy="true">
    : <non-terminal ref="SymbolicName" rr:title="index name"/>
    ( <non-terminal ref="SymbolicName" rr:title="property key"/> =
    <alt>
      <non-terminal ref="StringLiteral"/>
      <non-terminal ref="LegacyParameter"/>
    </alt>)
  </production>

  <production name="IndexQuery" oc:legacy="true">
    : <non-terminal ref="SymbolicName" rr:title="index name"/>
    (<alt>
      <non-terminal ref="StringLiteral"/>
      <non-terminal ref="LegacyParameter"/>
    </alt>)
  </production>

  <production name="IdLookup" oc:legacy="true">
    (<alt>
      <non-terminal ref="LiteralIds"/>
      <non-terminal ref="LegacyParameter"/>
      *
    </alt>)
  </production>

  <production name="LiteralIds" rr:inline="true" oc:legacy="true">
    <non-terminal ref="UnsignedIntegerLiteral"/>
    <repeat>
      &WS;,&WS;<non-terminal ref="UnsignedIntegerLiteral"/>
    </repeat>
  </production>

  <!-- \ START / -->

  <vocabulary file="basic-grammar.xml"/>

</grammar>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy