Search in sources :

Example 1 with MapExpComp

use of catdata.aql.exp.MapExp.MapExpComp in project fql by CategoricalData.

the class CombinatorParser method mapExp.

@SuppressWarnings({ "rawtypes", "unchecked" })
private static void mapExp() {
    Parser<MapExp<?, ?, ?, ?, ?, ?, ?, ?>> var = ident.map(MapExpVar::new), id = Parsers.tuple(token("identity"), sch_ref.lazy()).map(x -> new MapExpId<>(x.b)), colim = Parsers.tuple(token("getMapping"), colim_ref.lazy(), ident).map(x -> new MapExpColim(x.c, x.b)), comp = Parsers.tuple(token("["), map_ref.lazy(), token(";"), map_ref.lazy(), token("]")).map(x -> new MapExpComp(x.b, x.d)), ret = Parsers.or(id, mapExpRaw(), var, colim, comp, parens(map_ref));
    map_ref.set(ret);
}
Also used : MapExpComp(catdata.aql.exp.MapExp.MapExpComp) MapExpVar(catdata.aql.exp.MapExp.MapExpVar)

Aggregations

MapExpComp (catdata.aql.exp.MapExp.MapExpComp)1 MapExpVar (catdata.aql.exp.MapExp.MapExpVar)1