summaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/main/antlr4/org/onap
diff options
context:
space:
mode:
Diffstat (limited to 'asdc-controller/src/main/antlr4/org/onap')
-rw-r--r--asdc-controller/src/main/antlr4/org/onap/so/asdc/utils/ASDCLogging.g423
1 files changed, 23 insertions, 0 deletions
diff --git a/asdc-controller/src/main/antlr4/org/onap/so/asdc/utils/ASDCLogging.g4 b/asdc-controller/src/main/antlr4/org/onap/so/asdc/utils/ASDCLogging.g4
new file mode 100644
index 0000000000..669247d579
--- /dev/null
+++ b/asdc-controller/src/main/antlr4/org/onap/so/asdc/utils/ASDCLogging.g4
@@ -0,0 +1,23 @@
+grammar ASDCLogging;
+doc : value+;
+list : listName ':' '{' (obj (',' obj)*)? '}';
+simplePair : key ':' keyValue;
+complexPair : key ':' obj;
+value : simplePair | list | complexPair ;
+obj
+ : '{' 'NULL' '}'
+ | 'NULL'
+ | '{' value+ '}'
+ | value+
+ | '{' '}'
+ ;
+key : STRING;
+keyValue : STRING;
+listName : LIST_NAME;
+LIST_NAME : STRING 'List' | 'RelatedArtifacts';
+STRING : ~[:\r\n{},]+;
+
+LINE_COMMENT
+ : '//' ~[\r\n]* -> skip
+;
+WS: [ \t\n\r]+ -> skip ;