blob: 9925859d2010b590b819d48952901f7509618af1 [file] [log] [blame]
 %uimaents; ]>
Expressions UIMA Ruta provides five different kinds of expressions. These are type expressions, number expressions, string expressions, boolean expressions and list expressions. Definition: TypeExpression | NumberExpression | StringExpression | BooleanExpression | ListExpression]]>
Type Expressions UIMA Ruta provides two kinds of type expressions. Declared annotation types (see ). Type variables (see ).
<emphasis role="bold">Definition:</emphasis> AnnotationType | TypeVariable]]>
<emphasis role="bold">Example:</emphasis> ASSIGN(typeVar, Author)};]]>
Number Expressions UIMA Ruta provides several possibilities to define number expressions. As expected, every number expression evaluates to a number. UIMA Ruta supports integer and floating-point numbers. A floating-point number can be in single or in double precision. To get a complete overview, have a look at the following syntax definition of number expressions.
<emphasis role="bold">Definition:</emphasis> AdditiveExpression AdditiveExpression -> MultiplicativeExpression ( ( "+" | "-" ) MultiplicativeExpression )* MultiplicativeExpression -> SimpleNumberExpression ( ( "*" | "/" | "%" ) SimpleNumberExpression )* | ( "EXP" | "LOGN" | "SIN" | "COS" | "TAN" ) "(" NumberExpression ")" SimpleNumberExpression -> "-"? ( DecimalLiteral | FloatingPointLiteral | NumberVariable) | "(" NumberExpression ")" DecimalLiteral -> ('0' | '1'..'9' Digit*) IntegerTypeSuffix? IntegerTypeSuffix -> ('l'|'L') FloatingPointLiteral -> Digit+ '.' Digit* Exponent? FloatTypeSuffix? | '.' Digit+ Exponent? FloatTypeSuffix? | Digit+ Exponent FloatTypeSuffix? | Digit+ Exponent? FloatTypeSuffix FloatTypeSuffix -> ('f'|'F'|'d'|'D') Exponent -> ('e'|'E') ('+'|'-')? Digit+ Digit -> ('0'..'9') ]]>