Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar-van-rest committed Mar 27, 2020
1 parent 227dbcc commit 8b2c127
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 44 deletions.
36 changes: 0 additions & 36 deletions pgql-spoofax/syntax/Experimental.sdf3

This file was deleted.

4 changes: 0 additions & 4 deletions pgql-spoofax/syntax/GraphPattern.sdf3
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ context-free syntax

Pgql11FromClause.Pgql11FromClause = <FROM <GraphName>> {case-insensitive}

MatchWhereClauses.MatchWhereClauses = <MATCH <{PathPattern ","}+> <WhereClause?>> {case-insensitive}

LocalGraphName.GraphName = Identifier

GraphPattern.GraphPattern = <<{PathPattern ","}+>>

context-free syntax

PathPattern.PathPattern = <<Vertex> <EdgeVertex+>>
Expand Down
16 changes: 16 additions & 0 deletions pgql-spoofax/syntax/Legacy.sdf3
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ template options

keyword -/- [a-zA-Z0-9]

context-free syntax // PGQL 1.1/1.2

Query.Pgql11Query =
<
<{CommonPathExpression "\n"}*>
<SelectOrModify>
<Pgql11FromClause?>
<MatchWhereClauses>
<GroupByClause?>
<HavingClause?>
<OrderByClause?>
<LimitOffsetClauses?>
>

MatchWhereClauses.MatchWhereClauses = <MATCH <{PathPattern ","}+> <WhereClause?>> {case-insensitive}

context-free syntax // pgql-lang.sdf3 for PGQL 1.0

Legacy10Query.Pgql10Query =
Expand Down
16 changes: 12 additions & 4 deletions pgql-spoofax/syntax/pgql-lang.sdf3
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ imports
SolutionModifiers
Legacy
Expressions
Experimental
Modify
DDL

Expand All @@ -27,18 +26,27 @@ context-free syntax

Statement = Query

Query.Pgql11Query =
ExperimentalQuery.Query =
<
<{CommonPathExpression "\n"}*>
<SelectOrModify>
<Pgql11FromClause?>
<MatchWhereClauses>
<FromWhereClauses?>
<GroupByClause?>
<HavingClause?>
<OrderByClause?>
<LimitOffsetClauses?>
>

FromWhereClauses.FromWhereClauses = <FROM <{TableExpression ","}+> <WhereClause?>> {case-insensitive}

TableExpression = GraphMatch

GraphMatch.GraphMatch = <<MatchKeyword?> <PathPattern> <OnClause?>>

MatchKeyword.MatchKeyword = <MATCH> {case-insensitive}

OnClause.OnClause = <ON <GraphName>> {case-insensitive}

SelectOrModify = SelectClause
SelectOrModify = ModifyClause

Expand Down

0 comments on commit 8b2c127

Please sign in to comment.