Skip to content

Commit

Permalink
Merge pull request #85 from walter-weinmann/wwe
Browse files Browse the repository at this point in the history
Version 1.4.2.
  • Loading branch information
walter-weinmann authored Nov 18, 2017
2 parents 5c57059 + 656d943 commit 8f745b8
Show file tree
Hide file tree
Showing 9 changed files with 5,253 additions and 10,501 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ The documentation for **ocparse** is available here: [Wiki](https://github.com/w

The number of block comments (`/* ... */`) is limted to one per line.

### ParenthesizedExpression

`ParenthesizedExpression` is not supported due to a conflict with `NodePattern`.

### Properties / Literal

The rule `Properties` has a higher precedence than the rule `Literal`.
Expand Down Expand Up @@ -285,12 +281,6 @@ it is only used
MultiPartQuery = (ReadPart | (UpdatingStartClause, [SP], UpdatingPart)), With, [SP], { ReadPart, With, [SP] }, SinglePartQuery ;
`

### ParenthesizedExpression

`
ParenthesizedExpression = '(', [SP], Expression, [SP], ')' ;
`

### SchemaName

`
Expand Down
8 changes: 4 additions & 4 deletions include/ocparse_generator.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@
-define(SP_OPT, []).

-define(TESTS_FROM_NEO4J_V3_3, [
%% wwe
%% {"chapter name", "subchapter name", "page", "code"}
% --------------------------------------------------------------------------
% ==========================================================================
% Tuple structure: {chapter, section, subsection, completion, code}
% ==========================================================================
% Chapter 4. Get started with Cypher
% --------------------------------------------------------------------------
{"Chapter 4. Get started with Cypher", "4.1. Patterns", "",
Expand Down Expand Up @@ -648,7 +648,7 @@
"
CALL db.resampleIndex($indexname)
"},
%% wwe
%% wwe legacy
%% % --------------------------------------------------------------------------
%% {"Chapter 6. Syntax", "6.4. Parameters", "6.4.12. Index value (explicit indexes)", cypher,
%% "
Expand Down
6 changes: 2 additions & 4 deletions priv/BNF_Converter/ocparse.cf
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,7 @@ Atom11. Atom ::= "ANY" "(" FilterEx
Atom12. Atom ::= "NONE" "(" FilterExpression ")" ;
Atom13. Atom ::= "SINGLE" "(" FilterExpression ")" ;
Atom14. Atom ::= RelationshipsPattern ;
-- wwe
-- Atom15. Atom ::= ParenthesizedExpression ;
Atom15. Atom ::= ParenthesizedExpression ;
Atom16. Atom ::= FunctionInvocation ;
Atom17. Atom ::= Variable ;

Expand Down Expand Up @@ -941,8 +940,7 @@ PartialComparisonExpression06. PartialComparisonExpression ::=

-- parenthesized_expression -> '(' expression ')' : {parenthesizedExpression, '$2'}.

-- wwe
-- ParenthesizedExpression01. ParenthesizedExpression ::= "(" Expression ")" ;
ParenthesizedExpression01. ParenthesizedExpression ::= "(" Expression ")" ;

-- relationships_pattern -> node_pattern pattern_element_chain_list : {relationshipsPattern, '$1', '$2'}.

Expand Down
4 changes: 0 additions & 4 deletions priv/Railroad_Diagram_Generator/ocparse.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,7 @@ atom ::= literal
| ( ( 'FILTER' | 'ALL' | 'ANY' | 'NONE' | 'SINGLE' ) '(' filterExpression ')' )
| ( 'EXTRACT' '(' filterExpression ( '|' expression )? ')' )
| relationshipsPattern
/* wwe
| parenthesizedExpression
*/
| functionInvocation
| variable

Expand All @@ -542,9 +540,7 @@ listLiteral ::= '[' ( expression ( ',' expression )* )? ']'

partialComparisonExpression ::= ( '=' | '<>' | '<' | '>' | '<=' | '>=' ) addOrSubtractExpression

/* wwe
parenthesizedExpression ::= '(' expression ')'
*/

relationshipsPattern ::= nodePattern patternElementChain+

Expand Down
Loading

0 comments on commit 8f745b8

Please sign in to comment.