def p_parse_sparql(p): """ parse_sparql : prefix_list query """ print(p[0]) print(p[1]) print(p[2]) (vs, ts, d) = p[2] p[0] = Query(p[1], vs, ts, d)
def p_parse_sparql_1(p): """ parse_sparql : prefix_list query order_by offset limit """ (vs, ts, d) = p[2] p[0] = Query(p[1], vs, ts, d, p[3], p[5], p[4])