Giter Club home page Giter Club logo

jet's Introduction

Jet Lang ๐Ÿš€

Project development Current Status

A prototype implementation of the Jet language.

Note
This project is in a very early stage of the development.

The project works only on Windows at the moment, because I decided to play with C++20 modules and try to get the most out of it. We use CMake as our build tool.

What is Jet

A C-like, general-purpose programming language that compiles to a native code (through LLVM IR).

Goals:

  • Rust-like syntax
  • C++-like feature set (and more)
  • Optional garbage collection with no performance compromises
  • Extremely fast compile times based on a modular design
  • Prototype fast, improve with no limits
  • Simplicity is a priority
  • Possibility to run in a VM

To read more about the language, see the docs.

Hello world code

fn main {
  println("Hello, {} from Jet!", "World");
}

See more examples here.

Folder structure

The repository is divided into several main and component projects. They are organized in the Projects folder.

Some of the main projects are:

  • Compiler App (jetc) - a frontend of the Compiler library,
  • Compiler - the base library for compiler implementation. producing an executable.
  • Core - a common library providing basic language-related code that is shared among the other main projects.
  • Parser - provides the grammar and generates AST for the language.

For a more detailed description of the projects, refer to the Projects directory.

Usage

Download the latest release (if available) and run the following command:

jetc main

This command compiles a file module called main.jet. If you didn't create one yet follow the next steps.

Basic application

Create a file named main.jet with the following content:

fn main {
  println("Hello, {}!", "World");
}

Now run the command mentioned above. The compiler should create a new executable called main.exe. Run the program with:

.\main.exe

License

The project is licensed under the Apache 2.0 license. See the LICENSE file for details.

Project created by Paweล‚ Syska.

jet's People

Contributors

poetakodu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.