Giter VIP home page Giter VIP logo

fluffy-journey's Introduction

Fluffy Journey

fluffy-journey is an interpreted programming language. It is dynamically typed and comes with built-int garbage Colletion. The Syntax is Something between Python, C and JS / TS. As an Interpreted Language it is pretty fast. Oh and it is implemented with no external dependencies.

Syntax

see the examples-Directory for more

Variables

let a = 5;
let b = 25;
a = a + 5;

Loops

for (let i = 0; i < 10; i++) {
  a = i + 1;
}

while (b > a) {
  b = b - 5;
  break;
}

If Statements

if (b == 5 || a == b) {
  print("b is a");
} else if (a == (b-5)) {
  // ...
} else {
  // ...
}

Strings

let c = "Hello, World!";
c = str_split(c, " ");
type(c);  // "ARRAY"
len(c);   // 2

Arrays

let d = [5, true, "Psychic"];
d[0];         // 5
array_pop();  // "Psychic"
array_push(d, 10);

Slices

let s = d[0:2]; // [5, true]

Functions

let fib = fn(x) {
  if (x < 2) {
    return x;
  }
  return fib(x-1) + fib(x-2);
}

Usage

Build

make

Interprete a File

bin/fluffy-journey <filename>

Installation

sudo make install

fluffy-journey's People

Contributors

raphaelel avatar

Watchers

 avatar  avatar Derpy Foxie Plush 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.