Skip to content

Commit

Permalink
pp-log.err and .cli renames
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Nov 10, 2024
1 parent 4c12ffb commit 722287e
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/bopkit/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
bit_utils
cmdlang
comments-parser
err
pp-log.err
fpath
fpath-base
loc
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_circuit/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
bopkit
bopkit_sites
core ;; For [Core.Set_once]
err
pp-log.err
loc)
(lint
(pps ppx_js_style -check-doc-comments))
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_command/src/cmd_bop2c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let main =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"target file"
and () = Err_cli.set_config ()
and () = Pp_log_cli.set_config ()
and bopkit_compiler_config = Bopkit_compiler.Config.arg in
let circuit =
Bopkit_compiler.circuit_of_netlist ~path ~config:bopkit_compiler_config
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_command/src/cmd_check.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let main =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"file to check"
and () = Err_cli.set_config ()
and () = Pp_log_cli.set_config ()
and print_cds =
Arg.flag [ "print-cds" ] ~doc:"print the cds out stdout in case of success"
and bopkit_compiler_config = Bopkit_compiler.Config.arg in
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_command/src/cmd_simu.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let main =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"file to simulate"
and () = Err_cli.set_config ()
and () = Pp_log_cli.set_config ()
and bopkit_compiler_config = Bopkit_compiler.Config.arg
and bopkit_simulator_config = Bopkit_simulator.Config.arg in
let circuit =
Expand Down
4 changes: 2 additions & 2 deletions lib/bopkit_command/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
bopkit_to_c
cmdlang
core
err
err-cli
pp-log.err
pp-log.cli
fpath
fpath-base
seven_segment_display
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_compiler/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
bopkit_topological_sort
cmdlang
core
err
pp-log.err
fpath
fpath-base
graphics
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_process_command/src/bopkit_process_command.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let exec_cmd =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"input process file"
and () = Err_cli.set_config () in
and () = Pp_log_cli.set_config () in
let program = Parsing_utils.parse_file_exn (module Bopkit_process_syntax) ~path in
match Bopkit_process_interpreter.run_program ~architecture:n ~program with
| Ok () -> ()
Expand Down
4 changes: 2 additions & 2 deletions lib/bopkit_process_command/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
bopkit_process_pp
bopkit_process_syntax
cmdlang
err
err-cli
pp-log.err
pp-log.cli
fpath
fpath-base
pp)
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_process_interpreter/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
bit_utils
bopkit_process
bopkit_process_syntax
err
pp-log.err
loc
stdio)
(lint
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_simulator/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
core
core_unix
core_unix.sys_unix
err
pp-log.err
fpath
loc
stdio)
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_to_c/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
base
bopkit_circuit
bopkit_compiler
err
pp-log.err
loc
parsing-utils
pp
Expand Down
2 changes: 1 addition & 1 deletion lib/bopkit_topological_sort/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(libraries
base
bopkit_topological_sort
err
pp-log.err
expect_test_helpers_core.expect_test_helpers_base)
(inline_tests)
(lint
Expand Down
2 changes: 1 addition & 1 deletion project/visa/lib/visa/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
bit_utils
cmdlang
core ;; For [Core.String_id]
err
pp-log.err
fpath
loc
parsing-utils
Expand Down
2 changes: 1 addition & 1 deletion project/visa/lib/visa_assembler/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name visa_assembler)
(public_name bopkit.visa-assembler)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries base err loc visa)
(libraries base pp-log.err loc visa)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
4 changes: 2 additions & 2 deletions project/visa/lib/visa_command/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
base
cmdlang
core
err
err-cli
pp-log.err
pp-log.cli
fpath
fpath-base
seven_segment_display
Expand Down
10 changes: 5 additions & 5 deletions project/visa/lib/visa_command/src/visa_command.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let parse_cmd =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"assembler program to process"
and () = Err_cli.set_config () in
and () = Pp_log_cli.set_config () in
let p = Parsing_utils.parse_file_exn (module Visa_syntax) ~path in
print_s [%sexp (p : Visa.Program.t)])
;;
Expand All @@ -32,7 +32,7 @@ let process_cmd =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"assembler program to process"
and () = Err_cli.set_config () in
and () = Pp_log_cli.set_config () in
let program = Parsing_utils.parse_file_exn (module Visa_syntax) ~path in
let executable = Visa_assembler.program_to_executable ~program in
let program = Visa.Executable.disassemble executable in
Expand All @@ -48,7 +48,7 @@ let check_cmd =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"assembler program to process"
and () = Err_cli.set_config () in
and () = Pp_log_cli.set_config () in
let program = Parsing_utils.parse_file_exn (module Visa_syntax) ~path in
let executable = Visa_assembler.program_to_executable ~program in
let machine_code = Visa.Executable.to_machine_code executable in
Expand All @@ -64,7 +64,7 @@ let assemble_cmd =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"assembler program to process"
and () = Err_cli.set_config () in
and () = Pp_log_cli.set_config () in
let program = Parsing_utils.parse_file_exn (module Visa_syntax) ~path in
let executable = Visa_assembler.program_to_executable ~program in
let machine_code = Visa.Executable.to_machine_code executable in
Expand All @@ -81,7 +81,7 @@ let disassemble_cmd =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"machine code to process"
and () = Err_cli.set_config () in
and () = Pp_log_cli.set_config () in
let machine_code = Visa.Machine_code.of_text_file_exn ~path in
let program = Visa.Executable.Machine_code.disassemble machine_code ~path in
print_string (Pp_extended.to_string (Visa_pp.Program.pp program)))
Expand Down
2 changes: 1 addition & 1 deletion project/visa/lib/visa_dsl/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Expect_test_helpers_base)
(libraries
base
err
pp-log.err
expect_test_helpers_core.expect_test_helpers_base
parsing-utils
pp
Expand Down
4 changes: 2 additions & 2 deletions project/visa/lib/visa_simulator/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
core_unix
core_unix.core_thread
core_unix.sys_unix
err
err-cli
pp-log.err
pp-log.cli
fpath
fpath-base
loc
Expand Down
2 changes: 1 addition & 1 deletion project/visa/lib/visa_simulator/src/visa_simulator.ml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ let main =
(Param.validated_string (module Fpath))
~docv:"FILE"
~doc:"assembler program to execute"
and () = Err_cli.set_config ()
and () = Pp_log_cli.set_config ()
and config = Config.arg in
let program = Parsing_utils.parse_file_exn (module Visa_syntax) ~path in
let visa_simulator = create ~config ~program in
Expand Down

0 comments on commit 722287e

Please sign in to comment.