equal
deleted
inserted
replaced
148 | ((b, p as _ :: _ :: _), []) => mk_mixfix (if b then NOBR else BR, p) |
148 | ((b, p as _ :: _ :: _), []) => mk_mixfix (if b then NOBR else BR, p) |
149 | _ => Scan.!! (the_default ("malformed mixfix annotation: " ^ quote s) o snd) Scan.fail () |
149 | _ => Scan.!! (the_default ("malformed mixfix annotation: " ^ quote s) o snd) Scan.fail () |
150 end; |
150 end; |
151 |
151 |
152 fun parse_args f args = |
152 fun parse_args f args = |
153 case f args |
153 case Scan.read Args.stopper f args |
154 of (x, []) => x |
154 of SOME x => x |
155 | (_, _) => error "bad serializer arguments"; |
155 | NONE => error "bad serializer arguments"; |
156 |
156 |
157 |
157 |
158 (* list and string serializer *) |
158 (* list and string serializer *) |
159 |
159 |
160 fun implode_list c_nil c_cons e = |
160 fun implode_list c_nil c_cons e = |