equal
deleted
inserted
replaced
1166 | "comment" => isarscript data (* NB: should be ignored, but process anyway *) |
1166 | "comment" => isarscript data (* NB: should be ignored, but process anyway *) |
1167 | "litcomment" => isarscript data |
1167 | "litcomment" => isarscript data |
1168 | "spuriouscmd" => isarscript data |
1168 | "spuriouscmd" => isarscript data |
1169 | "badcmd" => isarscript data |
1169 | "badcmd" => isarscript data |
1170 (* improperproofcmd: improper commands which *do not* belong in script *) |
1170 (* improperproofcmd: improper commands which *do not* belong in script *) |
1171 | "undostep" => isarcmd "undos_proof 1" (* ProofGeneral.undo" *) |
1171 | "undostep" => isarcmd "undos_proof 1" |
1172 | "abortgoal" => isarcmd "ProofGeneral.kill_proof" |
1172 | "abortgoal" => isarcmd "ProofGeneral.kill_proof" |
1173 | "forget" => error "Not implemented" |
1173 | "forget" => error "Not implemented" |
1174 | "restoregoal" => error "Not implemented" (* could just treat as forget? *) |
1174 | "restoregoal" => error "Not implemented" (* could just treat as forget? *) |
1175 (* proofctxt: improper commands *) |
1175 (* proofctxt: improper commands *) |
1176 | "askids" => askids (thyname_attro attrs, objtype_attro attrs) |
1176 | "askids" => askids (thyname_attro attrs, objtype_attro attrs) |
1188 val thyname = topthy_name() |
1188 val thyname = topthy_name() |
1189 in (isarscript data; |
1189 in (isarscript data; |
1190 writeln ("Theory \""^thyname^"\" completed.")) |
1190 writeln ("Theory \""^thyname^"\" completed.")) |
1191 end |
1191 end |
1192 (* improperfilecmd: theory-level commands not in script *) |
1192 (* improperfilecmd: theory-level commands not in script *) |
|
1193 | "undoitem" => isarcmd "ProofGeneral.undo" |
1193 | "aborttheory" => isarcmd ("init_toplevel") |
1194 | "aborttheory" => isarcmd ("init_toplevel") |
1194 | "retracttheory" => isarcmd ("kill_thy " ^ (quote (thyname_attr attrs))) |
1195 | "retracttheory" => isarcmd ("kill_thy " ^ (quote (thyname_attr attrs))) |
1195 | "loadfile" => use_thy_or_ml_file (fileurl_of attrs) |
1196 | "loadfile" => use_thy_or_ml_file (fileurl_of attrs) |
1196 | "openfile" => (inform_file_retracted (fileurl_of attrs); |
1197 | "openfile" => (inform_file_retracted (fileurl_of attrs); |
1197 currently_open_file := Some (fileurl_of attrs)) |
1198 currently_open_file := Some (fileurl_of attrs)) |