Zoltan Somogyi caedf47d0d Improve several aspects of string.m.
library/string.m:
    Fix a bug in the word_wrap_separator function, which could cause it
    to add unnecessary line breaks. The bug was that it

    - insisted all line breaks needed for extremely long words at once, while
    - the logic of the code that did that did not consider all the conditions
      that the main code path considered.

    The fix is to handle adding line breaks to extremely long words
    one line break at the time, judging the need for those line breaks
    using the main code path.

    Improve the documentation of word_wrap and word_wrap_separator.

    Replace use of reversed lists with cords where this improves clarity.

    Use both predicate names and variable names that directly specify
    whether they refer to code units or code points.

    Add some XXXs on dodgy code.

    For two predicates, inline them at their only call sites.

tests/general/string_test.exp:
    Expect fixed output from word_wrap_separator.
2024-03-24 19:18:19 +11:00
2023-06-25 03:10:12 +10:00
2023-01-23 13:09:02 +11:00
2023-09-07 11:47:38 +10:00
2024-03-13 16:50:00 +11:00
2024-02-20 17:18:52 +11:00
2024-01-04 17:17:20 +11:00
2023-06-26 20:05:24 +10:00
2024-01-03 17:02:19 +11:00
2024-03-04 11:09:16 +11:00
2023-06-26 20:05:24 +10:00
2024-01-03 17:02:19 +11:00
2024-02-29 06:48:35 +11:00
2024-03-16 17:46:03 +11:00
2023-01-23 04:11:07 +11:00
2023-01-23 17:11:45 +11:00
2023-01-23 04:11:07 +11:00
2023-01-23 02:13:54 +11:00
2023-09-13 16:49:23 +10:00
2024-01-14 17:11:17 +11:00
2023-01-23 13:09:02 +11: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.

Small sample programs written in Mercury can be found in the samples and extras directories of the source code repository.

README files

The Mercury compiler has two 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 news file lists any recent changes. The history file is relevant if you want to find out more about the past development of Mercury. The limitations file lists some 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%