mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-26 14:54:17 +00:00
Estimated hours taken: 2 Branches: main, release. Fix two bugs in the declarative debugger's command handling. The `params' command wasn't being parsed and the code to handle the `actions' command expected it to be called `num_io_actions'. browser/declarative_user.m: Fix the command handler for `actions'. Add a command handler for the `params' command. Fix a typo: s/supress/suppress/ browser/parse.m: browser/browser_info.m: Fix some formatting. tests/debugger/declarative/Mmakefile: tests/debugger/declarative/dd_params.m: tests/debugger/declarative/dd_params.inp: tests/debugger/declarative/dd_params.exp: Test case for the above.
24 lines
398 B
Mathematica
24 lines
398 B
Mathematica
% Invoking the commands `params' and `actions' from within the
|
|
% declarative debugger was broken in rotd-2006-06-04.
|
|
%
|
|
:- module dd_params.
|
|
:- interface.
|
|
:- import_module io.
|
|
:- pred main(io::di, io::uo) is det.
|
|
:- implementation.
|
|
|
|
main(!IO) :-
|
|
p(1, X),
|
|
io.write(X, !IO),
|
|
io.nl(!IO).
|
|
|
|
:- type foo
|
|
---> bar
|
|
; baz(int, foo).
|
|
|
|
:- pred p(int, foo).
|
|
:- mode p(in, out) is det.
|
|
|
|
p(N, baz(N, bar)).
|
|
|