Giter VIP home page Giter VIP logo

quasi's Introduction

Quasi 🔮

Quasi (/ˈkwāˌzī/) is an interpreted programming language that's designed to be largely similar to most languages, but with slightly off-putting syntactical differences.

Lint status Test status

Quick links

Installation

The binary name for Quasi is quasi.

Currently, building from source is the only way to install Quasi:

$ git clone https://github.com/matteopolak/quasi
$ cd quasi
$ cargo build --release
$ ./target/release/quasi --version
quasi 0.1.0

Usage

A slightly off-putting interpreted programming language.

Usage: quasi <PATH>

Arguments:
  <PATH>  Path to the script to execute

Options:
  -h, --help     Print help
  -V, --version  Print version

Examples

Examples can be found in the examples directory.

Syntax

Quasi is a dynamically typed language and not whitespace sensitive.

Comments

# This is a comment

Variables

let x = 1;
let y = 2;
let z = x + y;

Control flow

if x == 1 [
  print "x is 1";
] else if x == 2 [
  print "x is 2";
] else
  print "x is neither 1 nor 2";
while x < 10 [
  print x;
  x = x + 1;
]
for let i = 0; i < 10; i = i + 1 [
  print i;
]

Functions

fn is_even(a) [
  return a % 2 == 0;
]

print is_even(10); # true
print is_even(15); # false

Shadowing

let x = 1;
let x = 2;

print x; # 2

quasi's People

Contributors

matteopolak avatar

Watchers

 avatar  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.