equal
deleted
inserted
replaced
207 in |
207 in |
208 if rest = [] |
208 if rest = [] |
209 then |
209 then |
210 nums |
210 nums |
211 else |
211 else |
212 let val num = hd rest |
212 let val first = hd rest |
213 val int_of = num_int num |
213 |
214 |
|
215 in |
214 in |
216 linenums rest (int_of::nums) |
215 if (first = (Other "*") ) |
|
216 then |
|
217 |
|
218 linenums rest ((num_int (hd (tl rest)))::nums) |
|
219 else |
|
220 linenums rest ((num_int first)::nums) |
217 end |
221 end |
218 end |
222 end |
219 |
223 |
220 fun get_linenums proofstr = let val s = extract_proof proofstr |
224 |
221 val tokens = #1(lex s) |
225 (* This relies on a Vampire proof line starting "% Number" or "% * Number"*) |
|
226 (* Check this is right *) |
|
227 |
|
228 fun get_linenums proofstr = let (*val s = extract_proof proofstr*) |
|
229 val tokens = #1(lex proofstr) |
222 |
230 |
223 in |
231 in |
224 rev (linenums tokens []) |
232 rev (linenums tokens []) |
225 end |
233 end |
226 |
234 |