Getting started
Meem runs on Linux x86_64 today. Windows and macOS are not available in 1.0.
1. Get the compiler
Section titled “1. Get the compiler”Download the compiler archive from the download page, check its fingerprint there, then unpack it:
tar -xJf meem-0.17.3-linux-x86_64.tar.xzexport PATH="$PWD/meem-0.17.3-linux-x86_64:$PATH"The folder holds the compiler and everything it needs, so it needs neither Python nor installation. The second line makes the meem command available in this terminal. To make it available in every terminal, add the line to your shell’s settings file (such as ~/.bashrc) with the folder’s full path.
2. Check the installation
Section titled “2. Check the installation”meem --versionmeem --self-testThe second command prints a single line saying that the self-test passed, or naming the reason it failed.
3. Run your first program
Section titled “3. Run your first program”Write this in a file named مرحبا.م (Meem source files end in .م):
اطبع("مرحبا يا عالم")It prints «مرحبا يا عالم», which is Arabic for «hello, world». Then:
meem مرحبا.م4. Build a file that runs on its own
Section titled “4. Build a file that runs on its own”meem build مرحبا.م -o مرحبا./مرحباThe result is a standalone executable that needs neither Meem nor Python. Details on the building page.
- Learn Meem: lessons in order, from scratch.
- Reference documentation: the full reference for the language.
- Ready-made examples: complete programs with their output.