aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/javacc/SDParser.jj
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-06 13:50:08 +0200
committerJon Bratseth <bratseth@gmail.com>2022-05-06 13:50:08 +0200
commita2eb1feb808a0533b5d7ef2b691a873f91c4c26b (patch)
tree3603ed065573ad1a0ac289bda1ed708c7519929a /config-model/src/main/javacc/SDParser.jj
parent05a6a813237990882d6466a280efea62a5035ed0 (diff)
Parse input default values
Diffstat (limited to 'config-model/src/main/javacc/SDParser.jj')
-rw-r--r--config-model/src/main/javacc/SDParser.jj16
1 files changed, 12 insertions, 4 deletions
diff --git a/config-model/src/main/javacc/SDParser.jj b/config-model/src/main/javacc/SDParser.jj
index 66513a8205a..ba304f6f9ca 100644
--- a/config-model/src/main/javacc/SDParser.jj
+++ b/config-model/src/main/javacc/SDParser.jj
@@ -2197,15 +2197,23 @@ void secondPhaseItem(RankProfile profile) :
}
/** Consumes an inputs block of a rank profile. */
-void inputs(RankProfile profile) :
+void inputs(RankProfile profile) : {}
+{
+ <INPUTS> <LBRACE> (<NL>)*
+ ( input(profile) (<NL>)*) *
+ <RBRACE>
+}
+
+void input(RankProfile profile) :
{
Reference reference;
TensorType type;
}
{
- <INPUTS> <LBRACE> (<NL>)*
- ( reference = queryFeature() type = inputType(reference) { profile.addInput(reference, type); } (<NL>)*) *
- <RBRACE>
+ reference = queryFeature() type = inputType(reference)
+ {
+ profile.addInput(reference, type);
+ }
}
TensorType inputType(Reference reference) :