Blink.io

Ide to run a simple Javascript based interpreter, Blink



Official Documentation

Syntax to work with Blink.

  1. Proper spacing is required between keywords.
  2. Each statement should be terminated with semicolon.
  3. Last statement should not be terminated with semicolon.

Keywords


Examples

1. Set a value for a variable

    use my_Var;
    set my_Var 10

This sets the value for `my_Var` as 10.


2. Print age

    use age;
    set age 20;
    print age

It prints the value of the age variable.


3. If expression

    use a;
    set a 100;
    if true;
    set a 50;
    end;
    print a;

As the if condition is true, it executes statements upto end. Therefore, it set the value of a as 50

v0.0.2 | Built by @abhishekp1996