A library for C++23 designed for RadishOS.
Melon is an alternative to the Standard Template Library for RadishOS userspace programs. However, it can also be used on GNU/Linux systems.
Melon aims to provide a readable, intuitive and modern API. However, it has a lot less features than libc++ or libstdc++ and its code is certainly less powerful.
Here is a "Hello, world!" program written using Melon:
#include <Melon/Print.hpp>
using namespace Melon;
int main()
{
Print::println("Hello, world!");
}If you wish to see more examples, have a look at the Examples directory.
Step 1: clone the repository
git clone https://github.com/wither16x/melonStep 2: download dependencies
chmod +x Dependencies.sh
./Dependencies.shStep 3: build the sources
make # make clean if neededOption 1: local installation
make install-localOption 2: global installation
sudo make install-globalIf you wish to build and run some programs made with Melon, run the following command:
make -C Examples/ExampleName # e.g. HelloWorld
./Examples/ExampleName/Build/hello_world # e.g. HelloWorld/Build/hello_worldYou can also run unit tests:
make -C Test
./Test/Build/TestDeveloppers can run:
./Dev.shdirectly. This script recompiles the sources, recompiles and run the tests and builds the documentation.
Online documentation can be found at https://wither16x.github.io/melon.