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);
}
Aggregations