Skip to content

Automated update of artifacts #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions packages/language-support/src/antlr-grammar/Cypher25Lexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ CONTINUE
: C O N T I N U E
;

COSINE
: C O S I N E
;

COUNT
: C O U N T
;
Expand Down Expand Up @@ -387,6 +391,10 @@ DOT
: '.'
;

DOT_METRIC
: D O T
;

DOTDOT
: '..'
;
Expand Down Expand Up @@ -442,6 +450,14 @@ ELSE
ENCRYPTED
: E N C R Y P T E D
;

EUCLIDEAN
: E U C L I D E A N
;

EUCLIDEAN_SQUARED
: E U C L I D E A N UNDERSCORE S Q U A R E D
;

END
: E N D
Expand Down Expand Up @@ -562,6 +578,10 @@ GT
: '>'
;

HAMMING
: H A M M I N G
;

HEADERS
: H E A D E R S
;
Expand Down Expand Up @@ -728,6 +748,10 @@ MANAGEMENT
: M A N A G E M E N T
;

MANHATTAN
: M A N H A T T A N
;

MAP
: M A P
;
Expand Down Expand Up @@ -1304,6 +1328,14 @@ VECTOR
: V E C T O R
;

VECTOR_DISTANCE
: V E C T O R UNDERSCORE D I S T A N C E
;

VECTOR_NORM
: V E C T O R UNDERSCORE N O R M
;

VERTEX
: V E R T E X
;
Expand Down Expand Up @@ -1523,6 +1555,10 @@ fragment EIGHT
fragment NINE
: [9]
;

fragment UNDERSCORE
: [\u005F]
;

// Should always be last in the file before modes
ErrorChar
Expand Down
32 changes: 32 additions & 0 deletions packages/language-support/src/antlr-grammar/Cypher25Parser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ expression1
| listItemsPredicate
| normalizeFunction
| vectorFunction
| vectorDistanceFunction
| vectorNormFunction
| trimFunction
| patternExpression
| shortestPathExpression
Expand Down Expand Up @@ -658,6 +660,28 @@ vectorFunction
: VECTOR LPAREN vectorValue = expression COMMA dimension = expression COMMA vectorCoordinateType RPAREN
;

vectorDistanceFunction
: VECTOR_DISTANCE LPAREN vector1 = expression COMMA vector2 = expression COMMA vectorDistanceMetric RPAREN
;

vectorNormFunction
: VECTOR_NORM LPAREN vectorValue = expression COMMA vectorNormDistanceMetric RPAREN
;

vectorDistanceMetric
: EUCLIDEAN
| EUCLIDEAN_SQUARED
| MANHATTAN
| COSINE
| DOT_METRIC
| HAMMING
;

vectorNormDistanceMetric
: EUCLIDEAN
| MANHATTAN
;

trimFunction
: TRIM LPAREN ((BOTH | LEADING | TRAILING)? (trimCharacterString = expression)? FROM)? trimSource = expression RPAREN
;
Expand Down Expand Up @@ -2032,6 +2056,7 @@ unescapedSymbolicNameString_
| CONTAINS
| CONTINUE
| COPY
| COSINE
| COUNT
| CREATE
| CSV
Expand All @@ -2055,6 +2080,7 @@ unescapedSymbolicNameString_
| DIFFERENT
| DISTINCT
| DRIVER
| DOT_METRIC
| DROP
| DRYRUN
| DUMP
Expand All @@ -2069,6 +2095,8 @@ unescapedSymbolicNameString_
| END
| ENDS
| ERROR
| EUCLIDEAN
| EUCLIDEAN_SQUARED
| EXECUTABLE
| EXECUTE
| EXIST
Expand All @@ -2093,6 +2121,7 @@ unescapedSymbolicNameString_
| GRAPHS
| GROUP
| GROUPS
| HAMMING
| HEADERS
| HOME
| ID
Expand Down Expand Up @@ -2131,6 +2160,7 @@ unescapedSymbolicNameString_
| LOOKUP
| MATCH
| MANAGEMENT
| MANHATTAN
| MAP
| MERGE
| NAME
Expand Down Expand Up @@ -2259,6 +2289,8 @@ unescapedSymbolicNameString_
| USING
| VALUE
| VECTOR
| VECTOR_DISTANCE
| VECTOR_NORM
| VERTEX
| WAIT
| WHEN
Expand Down
Loading
Loading