Melang

Logo

A script language of time-sharing scheduling coroutine in single thread

View the Project on GitHub Water-Melon/Melang

Installation

Melang relies on the core C library Melon, so it needs to be installed first. We can use the following commands to quickly install Melon:

git clone https://github.com/Water-Melon/Melon.git
cd Melon
./configure
make
sudo make install

If you are a Windows user, please refer to Melon installation for more details.

Then, we can execute the following commands to install Melang:

git clone https://github.com/Water-Melon/Melang.git
cd Melang
./configure
make all
sudo make install

The configure command has the following parameters:

Now you can use Melang for development.

Example

Here is a Melang script file.

//example.m

sys = Import('sys');
sys.print("Hello World!");

Then execute

melang example.m

The output is

Hello World!