saurabhdaware / blep

A programming language to create variables with boop and print them with bark.
https://codesandbox.io/s/github/saurabhdaware/blep
14 stars 1 forks source link
compiler

Blep Language 🐶

Note: I will not be maintaining this project. I made it only to learn about ASTs and thought I can open-source this code so that people can see the code. If you find something that I've implemented in wrong or not ideal way, feel free to send PR but there won't be any new additions to this language

A simple programming language where you define variables with boop keyword and print them with bark keyword. Compiler built in JavaScript.

boop a = 3;
boop b = 9;
bark(a + b);

How to use

The compiler is built over JavaScript so it requires Node.js installed.

Install Compiler

npm install -g blep

Run Blep Code

Create hello.blep file with following content

boop a = 3;
boop b = 9;
bark(a + b);

Execute the code with

blep hello.blep

Output

12

Local Setup

git clone https://github.com/saurabhdaware/blep.git
cd blep/
yarn
yarn link # this register blep command in your terminal

blep examples/hello-world.blep

You can try changing the code in src/index.js

Note: It's just a toy so bunch of obvious things may not work

UseCases

This is a toy @saurabhdaware made because he was bored.