[m-rev.] For review: initialise default pretty_printer formatters
Ralph Becket
rafe at csse.unimelb.edu.au
Tue Aug 14 14:21:00 AEST 2007
I've committed this change.
Ralph Becket, Wednesday, 8 August 2007:
> Estimated hours taken: 4
> Branches: main
>
> Define pretty_printer formatters for some common standard library types.
> Include these formatters in the default pretty_printer formatter_map.
> Add a useful function to the pretty_printer interface.
>
> library/array.m:
> library/char.m:
> library/float.m:
> library/int.m:
> library/list.m:
> library/string.m:
> library/tree234.m:
> Add <type>_to_doc functions.
>
> library/pretty_printer.m:
> Added function format_arg/1.
> Initialise the default formatter_map to use the <type>_to_doc
> functions.
>
> tests/hard_coded/Mmakefile:
> tests/hard_coded/test_pretty_printer_defaults.exp:
> tests/hard_coded/test_pretty_printer_defaults.m:
> Test case.
...
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list