Cecile 0.0.5

Cecile Toy Programming Language that is designed to be simple, fast
Cecile-0.0.5 is not a library.
Visit the last successful build: Cecile-0.1.7

⭐ Introduction

The Cecile, a modern programming language designed for simplicity and flexibility.

🍎 Overview

Welcome to the Cecile Toy programming language.

The syntax of Cecile is influenced by traditional programming languages like JavaScript, Go, and Rust, with a strong emphasis on developer experience, readability and ease-of-use.

Cecile is written in Rust. Some of performance matter part is written in Unsafe Rust that makes fast enough to compete with traditional interpreted languages like Javascript, Python.

📕 Features

  • Bytecode compiler
  • Garbage collected in runtime
  • Type Supported

⚙️️ Build Guide

🦀 Install Rust

We recommend installing Rust using rustup. You can install rustup as follows:

  • macOS or Linux:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
  • Windows (64-bit):

    Download the Windows 64-bit executable and follow the on-screen instructions.

🐙 Build from Source Code

We recommend installing Cecile by building from the source code as follows:

# Download the source code
git clone https://github.com/Hollowloki/Cecile
cd Cecile

# Install 'Cecile'
$ cargo install --path .

Now to use Cecile language, in your terminal, run:

cecile

Syntax examples

Variable Declaration

// Variable Declaration
let number: int = 1;
let string: String = "string";

// Ofcource you don't need to write type everytime you declare variable
let number = 2;
let string = "hello cecile";

Function Declaration

fn say_hello() -> String {
  return "hello";
}

println say_hello() // Out: "hello"

Type Declaration

type Point {
  x: int,
  y: int,
}

impl Point {
  fn new(x: int, y: int) {
    self.x = x;
    self.y = y;
  }
}

let point: Point = Point();