Search in sources :

Example 1 with OplEval

use of catdata.opl.OplExp.OplEval in project fql by CategoricalData.

the class OplParser method toEval.

private static OplExp toEval(Object c) {
    Tuple3 t = (Tuple3) c;
    if (!t.a.toString().equals("eval")) {
        throw new RuntimeException();
    }
    String i = (String) t.b;
    OplTerm r = toTerm(null, null, t.c, false);
    return new OplEval(i, r);
}
Also used : Tuple3(org.jparsec.functors.Tuple3) OplEval(catdata.opl.OplExp.OplEval)

Aggregations

OplEval (catdata.opl.OplExp.OplEval)1 Tuple3 (org.jparsec.functors.Tuple3)1