Class SOTSExpression2
java.lang.Object
org.eclipse.m2m.atl.engine.vm.nativelib.SOTSExpression2
Simple query language evaluator. This is used in the present version of the compiler. Recognized grammar:
exp ::= (simpleExp '+' exp) | simpleExp | INT | STRING | ('(' exp ')')
simpleExp ::= '$' varName:IDENT ('.' propName:IDENT ('(' ')')? ('[' ("ISA" '(' mname:IDENT '!' mename:IDENT ')') | (propName:IDENT '=' value:exp) | (index:exp) ']')*)* (',' default:exp)?;
IDENT ::= [A-Za-z_][A-Za-z0-9_]*;
VALUE ::= STRING | INT;
STRING ::= '[^']';
INT ::= [0-9]+;
SKIP ::= ' ' | '\t' | '\n' | '\r';
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SOTSExpression2
-
-
Method Details
-
exec
- Throws:
IOException
-