Skip to content
العربية

Getting started

Meem runs on Linux x86_64 today. Windows and macOS are not available in 1.0.

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.xz
export 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.

نافذة الطرفية
meem --version
meem --self-test

The second command prints a single line saying that the self-test passed, or naming the reason it failed.

Write this in a file named مرحبا.م (Meem source files end in .م):

اطبع("مرحبا يا عالم")

It prints «مرحبا يا عالم», which is Arabic for «hello, world». Then:

نافذة الطرفية
meem مرحبا.م
نافذة الطرفية
meem build مرحبا.م -o مرحبا
./مرحبا

The result is a standalone executable that needs neither Meem nor Python. Details on the building page.