Mellow is an imperative language that draws influence from D, Go, and functional languages, among others. This implementation exclusively targets x86-64 Linux.
The build process assumes that recent versions of the D Language compiler
dmd
, gcc
, g++
, git
, and the Netwide Assembler nasm
are installed.
To build the compiler, run make
in the toplevel project directory. With the
proper dependencies installed, and an internet connection, a simple make
should build the full compiler. Note that the make
process will attempt to
git clone
a secondary repository (the parser generator project at
https://github.com/Mellow-Programming-Language/ParserGenerator), which is
necessary to build the compiler.
To enable the green threads runtime, make compiler_multithread
to build a
version of the compiler with those features enabled.
./compiler --help
will provide a summary of options.
The programs under examples/ demonstrate the syntax and semantics of the Mellow language.
spawn
, yield
)match
statementsis
variant-decomposition expressions.length
propertyif
-else if
-else
, while
, foreach
, etc)extern func
FFI semanticsthen
, else
, coda
"end block" control-flow blocksin
blocksout
blocksconst
semantics