| line::xs ->
let (c,k,v) = split_or line in
let ((c1,k1,v1),rest) = loop xs in
- if c = c1 && k = k1
+ if c = c1 && k = k1 && not (k = [])
then
if List.mem v v1
then ((c1,k1,v1),rest)
[] -> failwith "not possible"
| [x] -> (c,k@v) :: prev
| (tag,_)::_ ->
- let vs =
+ (*let vs =
Printf.sprintf "%s:(%s)" tag
(String.concat "|"
(List.sort compare
let attempt =
Printf.sprintf "%s: %s %s" c
(String.concat " " (List.map (function (k,v) -> k^":"^v) k))
- vs in
- if List.mem attempt fp
+ vs in*)
+ if true (*List.mem attempt fp*)
then
let vs =
Printf.sprintf "\\\\\\\\\\(%s\\\\\\\\\\)"