@@ -640,9 +640,19 @@ reduceExpression
640640 ;
641641
642642allReduceExpression
643+ : allReduceExpressionValidArguments | allReduceExpressionInvalidArguments
644+ ;
645+
646+ allReduceExpressionValidArguments
643647 : ALLREDUCE LPAREN variable EQ expression COMMA variable IN expression BAR expression COMMA expression RPAREN
644648 ;
645649
650+ // Captures the case where the arguments are not valid, e.g. missing the variable or the bar expression.
651+ // This will be mapped to a FunctionInvocation which will throw a useful error during Semantic Analysis.
652+ allReduceExpressionInvalidArguments
653+ : ALLREDUCE LPAREN expression ((COMMA | BAR ) expression)* RPAREN
654+ ;
655+
646656listItemsPredicate
647657 : (
648658 ALL
@@ -656,6 +666,7 @@ normalizeFunction
656666 : NORMALIZE LPAREN expression (COMMA normalForm)? RPAREN
657667 ;
658668
669+
659670vectorFunction
660671 : VECTOR LPAREN vectorValue = expression COMMA dimension = expression COMMA vectorCoordinateType RPAREN
661672 ;
@@ -916,6 +927,7 @@ showCommand
916927 : SHOW (
917928 showAliases
918929 | showConstraintCommand
930+ | showCurrentGraphTypeCommand
919931 | showCurrentUser
920932 | showDatabase
921933 | showFunctions
@@ -973,6 +985,7 @@ composableShowCommandClauses
973985 : SHOW (
974986 showIndexCommand
975987 | showConstraintCommand
988+ | showCurrentGraphTypeCommand
976989 | showFunctions
977990 | showProcedures
978991 | showSettings
@@ -1022,6 +1035,10 @@ showConstraintsEnd
10221035 : constraintToken showCommandYield? composableCommandClauses?
10231036 ;
10241037
1038+ showCurrentGraphTypeCommand
1039+ : CURRENT GRAPH TYPE showCommandYield? composableCommandClauses?
1040+ ;
1041+
10251042showProcedures
10261043 : (PROCEDURE | PROCEDURES ) executableBy? showCommandYield? composableCommandClauses?
10271044 ;
0 commit comments