/Nemet

General perpous single paradime programming language and compiler

Primary LanguageRustMIT LicenseMIT

Contributors Forks Stargazers Issues MIT License LinkedIn


NEMET - nemet programming language

NeMeT

A Programming language with a really bad slogan
Explore the docs »

Report Bug · Request Feature

Installing

For installing in Gnu/Linux system make this projectl.

$ make

or

$ make install

Quick Start

The Project is in development state and dose not come with a package yet and It is Only available fot linux but you can use wsl in windows!
For getting started clone the repository and build the project using Rust toolchain
Install Nasm using your package manager or by downloading it from it's official website
Create a file like hello.nmt extention and write a simple program insde it:

lets start with a classic application that prints hello world to the standard output

fun main() {
    print "Hello World!\n";
}

now you can run the following commands:

$ cargo run ./hello.nmt
$ ./build/output

Compile your code

nmt fileName.nmt

nmt fileName.nmt generate your project to build directory

For example:

$ nemet examples/hello_world.nmt
$ ./build/hello_world

About The Project

A General Purpose Compiled Programming Language that generates x86-64 assembly as Intermediate representation (IR) which can be compiled to binary using nasm. We eventialy will move away from nasm and implement our own loader but the current goal is to become self hosted by writing the compiler in itself!

Use the docs/README.md to get started.

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.