File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ open Lsc.Lsc_parser
55open Lsc.Lsc_lexer
66open Out_channel
77
8- let usage_msg =
9- " exec [-allow-unfinished-computation] [-show-steps] [-show-trace] <filename>"
8+ let usage_msg = " exec [-linear] [-show-trace] <filename>"
109
1110let unfincomp = ref false
1211
1312let showtrace = ref false
1413
14+ let linear = ref false
15+
1516let input_file = ref " "
1617
1718let anon_fun filename = input_file := filename
@@ -25,14 +26,15 @@ let speclist =
2526 ; ( " -show-trace"
2627 , Stdlib.Arg. Set showtrace
2728 , " Interactively show steps of selection and unification." )
29+ ; (" -linear" , Stdlib.Arg. Set linear, " Actions which are used are consummed." )
2830 ]
2931
3032let () =
3133 Stdlib.Arg. parse speclist anon_fun usage_msg;
3234 let lexbuf = Lexing. from_channel (Stdlib. open_in ! input_file) in
3335 let mcs = constellation_file read lexbuf in
3436 let result =
35- match exec ~showtrace: ! showtrace mcs with
37+ match exec ~linear: ! linear ~ showtrace:! showtrace mcs with
3638 | Ok result -> result
3739 | Error e ->
3840 pp_err_effect e |> Out_channel. output_string Out_channel. stderr;
You can’t perform that action at this time.
0 commit comments