Zoltan Somogyi f4c2b62176 Add support for \e as the escape char, stage 1.
library/mercury_term_lexer.m:
    Convert any occurrences of the \e escape sequence to the escape character.

    List all the places in the library, compiler and runtime that also handle
    escape sequences, some of which handle all these sequences,
    and some of which handle only subsets.

    Sort the letters in recognized escape sequences.

compiler/parse_tree_out_pragma.m:
library/rtti_implementation.m:
library/term_io.m:
    Add comments to all the other places that handle escape sequences
    that direct readers to mercury_term_lexer.m as containing the master list
    of such sequences.

    Add commented-out code that, after stage 1 has been installed,
    stage 2 should enable.

runtime/mercury_ml_expand_body.h:
runtime/mercury_string.c:
    Turn escape characters back into their escape sequence form
    for characters and strings.

tests/valid_seq/char_escape_opt_helper_1.m:
    Test whether the compiler accepts \e as an escape sequence.

compiler/options.m:
    Add a mechanism for detecting the presence of this diff in the
    installed compiler.
2024-04-28 16:49:18 +10:00
2024-04-27 15:21:06 +10:00
2024-03-13 16:50:00 +11:00
2024-04-23 14:31:16 +10:00
2024-02-20 17:18:52 +11:00
2024-01-04 17:17:20 +11:00
2024-01-03 17:02:19 +11:00
2024-03-04 11:09:16 +11:00
2024-04-14 11:21:29 +10:00
2024-01-03 17:02:19 +11:00
2024-02-29 06:48:35 +11:00
2024-04-20 14:37:32 +10:00
2024-01-14 17:11:17 +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%