Unicode character database parser and library for the Mercury language. The implementation uses the latest Unicode release, version 8.0. As Unicode updates are rather frequent, this code uses a generative approach, to facilitate the frequent addition of characters, blocks and scripts.
The project can be build using any current Mercury compiler in any legal grade.
A consequence of this approach is that this library can also be used as a common ground for portable libraries which must ensure a consistent behaviour across different execution environments. This means that no native code is involved, and all facts and data are purely derived from the UCD file.
- Input: PropertyValueAliases.txt
- Output: ucd_types.m
- The UCD compiler itself is modular, and links together a list of processors:
- Variables:
- MMC: the Mercury compiler executable
- MCFLAGS: the flags for the given Mercury compiler, default: --use-grade-subdirs
- Targets:
- clean: removes all generated code files and binary output
- update: forces an update of all downloaded files
- realclean: invokes clean, but also removes downloaded files
- libucd: A library containing all expored functions and predicates dealing with Unicode, sourcing ucd.m