Warning
The compiler, lunc and the programming language are both experimental, and
may not work. It is not recommended to use Lun in production.
Lun is a general-purpose programming language, that compile AOT to machine code, used to create maintanable, reusable and optimized software.
# 1. clone the repo
$ git clone git@github.com:lunprog/lun.git
# 2. build the lunc compiler
$ cargo build --bin lunc --release
# 3. use the lunc compiler
$ ./target/release/luncCheckout the examples in the examples folder.
extern "C" {
puts :: fun(*i8);
}
main :: fun() {
puts(c"Hello World!");
}
For now Lun doesn't have a standard library so we use puts from the libc.
To compile run:
$ lunc helloworld.lun
$ ./helloworldLicensed under the MIT license, LICENSE or [http://opensource.org/licenses/MIT].
Feel free to contribute. For the moment there is no documentation but it will come.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.