summaryrefslogtreecommitdiffstats
path: root/integration/intellij/src
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-04-25 13:56:34 +0200
committerJon Bratseth <bratseth@gmail.com>2022-04-25 13:56:34 +0200
commitabf16f9dc5f152748219405834d5f5e9211c708f (patch)
tree0536d14ec2a79536c4dfdcd3b87102b648057a70 /integration/intellij/src
parentad0f821291c71be9c077c98c0edece14ccb8fb4d (diff)
Support lambdas
Diffstat (limited to 'integration/intellij/src')
-rw-r--r--integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf5
1 files changed, 3 insertions, 2 deletions
diff --git a/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf b/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf
index 952e73edb66..cb4bc024c86 100644
--- a/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf
+++ b/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf
@@ -111,8 +111,7 @@ AnnotationFieldDefinition ::= field IdentifierVal type FieldTypeName '{' '}'
// The *Expr alternatives are consumed greedily so order matters.
//-------------------------
RankingExpression ::= LiteralTensorExpr | FilePathExpr | ParenthesisedExpr | BooleanExpr | ArithmeticExpr | IfFunctionExpr |
- QueryDefinitionExpr | FunctionCallExpr | InListRankingExpr | PrimitiveExpr |
- SliceExpr
+ QueryDefinitionExpr | FunctionCallExpr | InListRankingExpr | PrimitiveExpr | SliceExpr | LambdaExpr
FilePathExpr ::= file ':' (FilePath | WordWrapper)
@@ -153,6 +152,8 @@ TensorValue ::= CellAddress ':' RankingExpression
CellAddress ::= Label | FullTensorAddress
+LambdaExp ::= FunctionCallExpr ParenthesisedExpr
+
//-------------------------
//-- Rank Profile rules ---
//-------------------------