Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
ee32c786
Commit
ee32c786
authored
Sep 09, 2016
by
MARCHE Claude
Browse files
why3shell
parent
b7e0b0b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/why3shell/why3shell.ml
View file @
ee32c786
...
...
@@ -236,9 +236,6 @@ let commands =
"a"
,
"run a simple test of Unix_scheduler.timeout"
,
test_timeout
;
"p"
,
"print the session in raw form"
,
dump_session_raw
;
"t"
,
"test schedule_proof_attempt on the first goal"
,
test_schedule_proof_attempt
;
(*
printf "ls : list current directory@\n";
*)
]
let
commands_table
=
Stdlib
.
Hstr
.
create
17
...
...
@@ -276,38 +273,6 @@ let interp chout fmt s =
with
Not_found
->
printf
"unknown command `%s`@."
s
(*
| "cd" ->
begin
match args with
| [d] ->
begin
try
let path = Strings.split '/' d in
let path =
if String.get d 0 = '/' then path
else !curdir @ path
in
let dir = resolve !ses path in
curdir := dir
with Error s ->
printf "command cd failed: %s@." s
end
| _ -> printf "command cd expects exactly one argument@."
end
| "pwd" -> printf "/%a@." (Pp.print_list Pp.slash Pp.string) !curdir
| "ls" ->
let t = Session_itp.get_theories !ses in
List.iter
(fun (s,l) ->
fprintf fmt "File: %s@\n" (Filename.basename s);
List.iter
(fun (th,_) ->
fprintf fmt " Theory: %s@\n" th)
l)
t;
fprintf fmt "@?"
*)
let
()
=
printf
"Welcome to Why3 shell. Type '?' for help.@."
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment