Search in sources :

Example 1 with LetAtom

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

the class RuleParserImpl method letAtom.

public final LetAtom letAtom() throws ParseException {
    IObjectAtom uri1;
    StringFunctionAtom fun;
    jj_consume_token(LET);
    jj_consume_token(LPAR);
    uri1 = iObject();
    jj_consume_token(COMMA);
    fun = stringFunctionAtom();
    jj_consume_token(RPAR);
    {
        if (true)
            return new LetAtom(uri1, fun);
    }
    throw new Error("Missing return statement in function");
}
Also used : StringFunctionAtom(org.apache.stanbol.rules.manager.atoms.StringFunctionAtom) LetAtom(org.apache.stanbol.rules.manager.atoms.LetAtom) IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom)

Aggregations

IObjectAtom (org.apache.stanbol.rules.manager.atoms.IObjectAtom)1 LetAtom (org.apache.stanbol.rules.manager.atoms.LetAtom)1 StringFunctionAtom (org.apache.stanbol.rules.manager.atoms.StringFunctionAtom)1