aboutsummaryrefslogtreecommitdiffstats
path: root/sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-08-29 16:06:22 -0400
committerDan Timoney <dtimoney@att.com>2017-08-29 17:01:51 -0400
commit3cd5e19b313f5835335d04f1f002ff858fcf174f (patch)
tree1fc2ccaca57bdd92353866abdf3de4db17d385fe /sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4
parentb7cb3b7c57d78b2be23290c201c9517965055d24 (diff)
Prune code migrated from sdnc/core to ccsdk
Remove code from sdnc/core which has been refactored to the CCSDK sli/core project as part of the ONAP Amsterdam release. Added README.md files for each former sdnc/core component redirecting the reader to the correct CCSDK repo. Change-Id: Ifb1f7752fa5e6e08e4393fb34e68dc1a84f35678 Issue-ID: SDNC-59 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4')
-rw-r--r--sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g466
1 files changed, 0 insertions, 66 deletions
diff --git a/sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4 b/sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4
deleted file mode 100644
index 51f4016..0000000
--- a/sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4
+++ /dev/null
@@ -1,66 +0,0 @@
-grammar ExprGrammar;
-
-options {
- language = Java;
-}
-
-
-COMPAREOP : '==' | '!=' | '>' | '<' | '>=' | '<=';
-
-RELOP : 'and' | 'or';
-
-ADDOP : '+' | '-';
-
-MULTOP : '/' | '*';
-
-NUMBER : ('0'..'9')+;
-
-STRING : '\'' ~[\']* '\'';
-
-IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-')*;
-
-// CONTEXT_VAR : '$' IDENTIFIER;
-
-WS: [ \n\t\r]+ -> skip;
-
-constant : NUMBER | STRING ;
-
-variableLead : ('$')? variableTerm ;
-
-variableTerm : IDENTIFIER ('[' expr ']')? ;
-
-variable : variableLead ('.' variableTerm)* ('.')?;
-
-// variable : CONTEXT_VAR ( '[' expr ']' )? ('.' IDENTIFIER )? ;
-
-atom : constant | variable;
-
-
-expr : atom
- | parenExpr
- | multExpr
- | addExpr
- | compareExpr
- | relExpr
- | funcExpr;
-
-parenExpr : '(' expr ')';
-
-term : atom | parenExpr | funcExpr;
-
-multExpr : term (MULTOP term)*;
-
-addExpr : multExpr (ADDOP multExpr)*;
-
-compareExpr : addExpr COMPAREOP addExpr;
-
-relExpr : compareExpr (RELOP expr)*;
-
-funcExpr : IDENTIFIER '(' expr (',' expr)* ')';
-
-
-
-
-
-
-