Skip to content

lunprog/lun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

474 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Lun Programming Language

The Lun Programming Language

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.

Installation

Build from source on Linux

# 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/lunc

Example

Checkout the examples in the examples folder.

Hello world

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
$ ./helloworld

License

Licensed under the MIT license, LICENSE or [http://opensource.org/licenses/MIT].

Contribution

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.

About

Lun is a general-purpose programming language, that compile AOT to machine code, used to create maintanable, reusable and optimized software.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages