-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6621fa0
commit 82cea66
Showing
20 changed files
with
1,946 additions
and
1,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
open Cmdliner | ||
|
||
module Make (PC : ParserAndCompiler.S) (Debug_adapter : Debug_adapter.S) : | ||
Console.S = struct | ||
module Common_args = Common_args.Make (PC) | ||
|
||
let debug_wpst_info = | ||
let doc = | ||
"Starts Gillian in debugging mode for whole-program symbolic testing" | ||
in | ||
let man = | ||
[ | ||
`S Manpage.s_description; | ||
`P | ||
"Starts Gillian in debugging mode for whole-program symbolic \ | ||
testing, which communicates via the Debug Adapter Protocol"; | ||
] | ||
in | ||
Cmd.info "debugwpst" ~doc ~man | ||
|
||
let start_debug_adapter () = | ||
Config.current_exec_mode := Utils.Exec_mode.Symbolic; | ||
Lwt_main.run (Debug_adapter.start Lwt_io.stdin Lwt_io.stdout) | ||
|
||
let debug_wpst_t = Common_args.use Term.(const start_debug_adapter) | ||
let debug_wpst_cmd = Cmd.v debug_wpst_info debug_wpst_t | ||
let cmds = [ debug_wpst_cmd ] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.