Peter Wang 337877a67b Fix tabling of subtypes.
compiler/table_gen.m:
    Find the maximum value used by an enum type to determine the size of
    a trie node required for its step. Previously the code counted the
    number of alternatives in the enum type, which does not work for
    subtypes.

compiler/hlds_pred.m:
    Update comment.

runtime/mercury_ml_expand_body.h:
runtime/mercury_deconstruct_macros.h:
    Move some macros from mercury_ml_expand_body.h to
    mercury_deconstruct_macros.h, and add MR_ prefixes.

runtime/mercury_construct.c:
    Update comment.

runtime/mercury_table_type_body.h:
    Use macros to search the ptag layout array or secondary tag array
    if it is not possible to directly index them (which is the case for
    subtypes).

tests/tabling/Mmakefile:
tests/tabling/table_subtype_du.m:
tests/tabling/table_subtype_du.exp:
tests/tabling/table_subtype_enum.m:
tests/tabling/table_subtype_enum.exp:
    Add test cases.
2021-04-09 17:41:23 +10:00
2021-01-26 14:57:37 +11:00
2021-03-06 22:09:49 +11:00
2021-04-09 17:41:23 +10:00
2021-01-25 20:28:23 +11:00
2020-10-30 13:21:23 +11:00
2020-10-27 11:10:11 +11:00
2021-04-09 17:41:23 +10:00
2020-10-27 11:10:11 +11:00
2021-03-05 22:54:28 +11:00
2021-04-09 17:41:23 +10:00
2020-10-27 11:10:11 +11:00
2021-01-25 18:33:24 +11:00
2020-06-02 16:23:22 +10:00
2021-01-01 15:39:54 +11:00
2020-04-14 21:26:30 +10:00
2021-04-09 17:41:23 +10:00
2021-01-25 18:33:24 +11:00
2020-06-02 16:23:22 +10:00

Mercury

Mercury is a logic/functional programming language which combines the clarity and the expressiveness of declarative programming with advanced static analysis and error detection features.

More information is available on the website's about pages, in other README files in the source code repository, and in the documentation.

README files

The Mercury compiler has a number of different backends and works on different operating systems. Specific information is contained in individual README files:

Other information

See the current release notes for the latest stable release. The history file is relevant if you want to find out more about the past development of Mercury. News lists any current or future enhancements (but this isn't always up-to-date). The limitations file lists a number of ways in which the Mercury implementation does not yet meet its goals.

Information for developers

If you are considering contributing to the Mercury project the website contains some documents that may be helpful. These include a document about contributions in general and specific information about contributing such as coding styles.

Contact

See our contact page.

Description
No description provided
Readme MIT 145 MiB
Languages
Mercury 85.4%
C 8.7%
Shell 1.4%
Makefile 1%
JavaScript 1%
Other 2%