theloaflanguage

1.0.2 • Public • Published

TheLoafLanguage

An awesome language, made for the bread. (using javascript)

Here's the syntax:

bake main () {
    ^^ a string non-mutable variable
    bagel hello = "bread";

    ^^ a mutable variable
    bread hey = "there";`

    ^^ a non-mutable boolean variable
    burger nice = true;

    ^^ a mutable boolean variable
    pizza notTasty = false;

    ^^ a non-mutable integer/float variable
    cookie integer = 123;

    ^^ a mutable integer/float variable
    donut float = 123.5;

    ^^ print something to the console

    ^^ to use variables use back ticks
    ^^ for example:
    sprinkle(`float`);

    ^^ to print something without using variables, use double quotes
    ^^ for example:
    breadcast("hello, bread");

    ^^ add two numbers (supports only two for now.)
    breadition(1, 2);

    ^^ subtract two numbers (supports only two for now.)
    breadtraction(2, 1);

    ^^ multiply 2 numbers
    breadplication(1, 2);

    ^^ divide 2 numbers
    breadivision(2, 1)
};

Package Sidebar

Install

npm i theloaflanguage

Weekly Downloads

2

Version

1.0.2

License

BSD-3-Clause

Unpacked Size

14.1 kB

Total Files

7

Last publish

Collaborators

  • kingerious