Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

Commit 41b4d30

Browse files
author
haikalpribadi
committed
Unreserve 'get', 'sort', 'limit', 'offset', and 'group' for type labels
1 parent 0f60322 commit 41b4d30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grammar/Graql.g4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ query_match_group_agg : query_match match_group match_aggregate ;
5959

6060
modifiers : ( filter';' )? ( sort';' )? ( offset';' )? ( limit';' )?;
6161

62-
filter : FILTER VAR_ ( ',' VAR_ )* ;
62+
filter : GET VAR_ ( ',' VAR_ )* ;
6363
sort : SORT VAR_ ORDER_? ;
6464
offset : OFFSET LONG_ ;
6565
limit : LIMIT LONG_ ;
@@ -243,6 +243,7 @@ regex : STRING_ ;
243243

244244
unreserved : VALUE
245245
| MIN | MAX| MEDIAN | MEAN | STD | SUM | COUNT
246+
| GET | SORT | LIMIT | OFFSET | GROUP
246247
| PATH | CLUSTER | FROM | TO | OF | IN
247248
| DEGREE | K_CORE | CONNECTED_COMPONENT
248249
| MIN_K | K | CONTAINS | SIZE | WHERE
@@ -252,7 +253,7 @@ unreserved : VALUE
252253

253254
// QUERY COMMAND KEYWORDS
254255

255-
MATCH : 'match' ; FILTER : 'get' ;
256+
MATCH : 'match' ; GET : 'get' ;
256257
DEFINE : 'define' ; UNDEFINE : 'undefine' ;
257258
INSERT : 'insert' ; DELETE : 'delete' ;
258259
COMPUTE : 'compute' ;

0 commit comments

Comments
 (0)