Search in sources :

Example 1 with SumAtom

use of org.apache.stanbol.rules.manager.atoms.SumAtom in project stanbol by apache.

the class RuleParserImpl method sumAtom.

public final SumAtom sumAtom() throws ParseException {
    NumericFunctionAtom numericFunctionAtom1;
    NumericFunctionAtom numericFunctionAtom2;
    jj_consume_token(PLUS);
    jj_consume_token(LPAR);
    numericFunctionAtom1 = numericFunctionAtom();
    jj_consume_token(COMMA);
    numericFunctionAtom2 = numericFunctionAtom();
    jj_consume_token(RPAR);
    {
        if (true)
            return new SumAtom(numericFunctionAtom1, numericFunctionAtom2);
    }
    throw new Error("Missing return statement in function");
}
Also used : SumAtom(org.apache.stanbol.rules.manager.atoms.SumAtom) NumericFunctionAtom(org.apache.stanbol.rules.manager.atoms.NumericFunctionAtom)

Aggregations

NumericFunctionAtom (org.apache.stanbol.rules.manager.atoms.NumericFunctionAtom)1 SumAtom (org.apache.stanbol.rules.manager.atoms.SumAtom)1