let out_str = function
| MQCons s -> con s
- | MQSRVar s -> out_rvar s
- | MQSSVar s -> out_svar s
+ | MQStringRVar s -> out_rvar s
+ | MQStringSVar s -> out_svar s
| MQFunc (f, r) -> out_func f ^ out_rvar r
| MQMConclusion -> key "mainconclusion"
| MQConclusion -> key "conclusion"
| MQPattern p -> key "pattern" ^ out_pat p
| MQUnion (l1, l2) -> sep "(" ^ out_list l1 ^ key "union" ^ out_list l2 ^ sep ")"
| MQIntersect (l1, l2) -> sep "(" ^ out_list l1 ^ key "intersect" ^ out_list l2 ^ sep ")"
- | MQLRVar v -> key "rvaroccur" ^ v
+ | MQListRVar v -> key "rvaroccur" ^ v
| MQLetIn (v, l1, l2) ->
key "let " ^ out_rvar v ^ " = " ^ out_list l1 ^ key " in " ^ out_list l2
- | MQLetRef v -> out_rvar v
+ | MQListLVar v -> out_rvar v
let out_query = function
| MQList l -> out_list l
let mqs = if b then MQMConclusion else MQConclusion in
MQSelect (rvar,
MQUse (MQPattern r, svar),
- MQIs (MQSSVar svar, mqs)
+ MQIs (MQStringSVar svar, mqs)
)
let rec build_inter n = function
MQSubset (
MQSelect (
"uri2",
- MQUsedBy (MQLRVar "uri", "pos"),
+ MQUsedBy (MQListRVar "uri", "pos"),
MQOr (
- MQIs (MQSSVar "pos", MQConclusion),
- MQIs (MQSSVar "pos", MQMConclusion)
+ MQIs (MQStringSVar "pos", MQConclusion),
+ MQIs (MQStringSVar "pos", MQMConclusion)
)
),
- MQLetRef "universe"
+ MQListLVar "universe"
)
)
)