summaryrefslogtreecommitdiffstats
path: root/integration
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
parentad0f821291c71be9c077c98c0edece14ccb8fb4d (diff)
Support lambdas
Diffstat (limited to 'integration')
-rw-r--r--integration/intellij/build.gradle4
-rw-r--r--integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf5
2 files changed, 6 insertions, 3 deletions
diff --git a/integration/intellij/build.gradle b/integration/intellij/build.gradle
index 6c874269c5d..6bc385a983c 100644
--- a/integration/intellij/build.gradle
+++ b/integration/intellij/build.gradle
@@ -64,7 +64,9 @@ patchPluginXml {
untilBuild = '213.*'
// in changeNotes you can add a description of the changes in this version (would appear in the plugin page in preferences\plugins)
changeNotes = """
- <em>Support for inputs in rank profiles.</em>"""
+ Support for inputs in rank profiles.
+ Correct parsing of lambda expressions.
+ """
}
test {
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 ---
//-------------------------