mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
compiler/indent.m:
compiler/parse_tree_out_misc.m:
Move indent operations from parse_tree_out_misc.m to a new module,
indent.m.
Include a "2" in the names of these operations, because
- these operations print two spaces per level of indentation, but
- some other, similar operations in the compiler use four spaces per level,
and they should be moved here later as well.
compiler/libs.m:
Add the new module to the libs package.
compiler/notes/compiler_design.html:
Document the new module, as well as some other modules in the libs
package that weren't documented before.
compiler/hlds_out_goal.m:
compiler/hlds_out_pred.m:
compiler/hlds_out_type_table.m:
Try to use the indent2_string function instead of the write_indent2
predicate, since this allows the indent to printed as part of a call
to io.format.
Fix the printing of loop control scope reasons. Make slight improvements
in the format of some other parts of the output.
compiler/hlds_out_typeclass_table.m:
Try to use the indent2_string function instead of the write_indent2
predicate, since this allows the indent to printed as part of a call
to io.format.
Several fields of class and instance infos that contain lists of stuff
(e.g. method_infos) were being written out on a single line, even though
the lists could be quite long. Fix this by writing out each list item
on its own line. Indent these lines, to separate them visually from
the heading lines preceding them.
Print more information about method_infos to help make sense of them.
compiler/hlds_out_util.m:
Try to use the indent2_string function instead of the write_indent2
predicate, since this allows the indent to printed as part of a call
to io.format.
Write each proof in a constraint proof map on its line.
compiler/parse_tree_out_sym_name.m:
Add a function version of a predicate, which returns a string
without writing it out.
compiler/hlds_out_mode.m:
Improve variable names.
compiler/write_error_spec.m:
Conform to the function renames in indent.m.
59 lines
1.9 KiB
Mathematica
59 lines
1.9 KiB
Mathematica
%-----------------------------------------------------------------------------%
|
|
% vim: ft=mercury ts=4 sw=4 et
|
|
%-----------------------------------------------------------------------------%
|
|
% Copyright (C) 2002-2003, 2005, 2008-2009 The University of Melbourne.
|
|
% Copyright (C) 2015, 2017, 2019-2022 The Mercury team
|
|
% This file may only be copied under the terms of the GNU General
|
|
% Public License - see the file COPYING in the Mercury distribution.
|
|
%-----------------------------------------------------------------------------%
|
|
%
|
|
% This package contains general utilities that are used by other packages.
|
|
%
|
|
|
|
:- module libs.
|
|
:- interface.
|
|
|
|
% Option handling.
|
|
:- include_module globals.
|
|
:- include_module options.
|
|
:- include_module handle_options.
|
|
:- include_module optimization_options.
|
|
:- include_module op_mode.
|
|
:- include_module compute_grade.
|
|
:- include_module trace_params.
|
|
|
|
% Error handling.
|
|
:- include_module compiler_util.
|
|
:- include_module maybe_util.
|
|
|
|
% Representation of mmakefile fragments.
|
|
:- include_module mmakefiles.
|
|
|
|
% Existence checks for required libraries.
|
|
:- include_module check_libgrades.
|
|
|
|
% Generic algorithms and data structures that for one reason or another
|
|
% are not in the standard library.
|
|
:- include_module dependency_graph.
|
|
:- include_module file_util.
|
|
:- include_module graph_colour.
|
|
:- include_module indent.
|
|
:- include_module md5.
|
|
:- include_module pickle.
|
|
:- include_module va_map.
|
|
|
|
% OS interfaces not provided by the standard library.
|
|
:- include_module process_util.
|
|
:- include_module shell_util.
|
|
:- include_module timestamp.
|
|
|
|
% Constraint machinery for the termination analysers.
|
|
:- include_module lp.
|
|
:- include_module lp_rational.
|
|
:- include_module polyhedron.
|
|
:- include_module rat.
|
|
|
|
%-----------------------------------------------------------------------------%
|
|
:- end_module libs.
|
|
%-----------------------------------------------------------------------------%
|