Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saurabhdaware/blep
A programming language to create variables with boop and print them with bark.
https://github.com/saurabhdaware/blep
compiler
Last synced: 10 days ago
JSON representation
A programming language to create variables with boop and print them with bark.
- Host: GitHub
- URL: https://github.com/saurabhdaware/blep
- Owner: saurabhdaware
- Created: 2020-09-13T18:38:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-15T18:15:25.000Z (about 4 years ago)
- Last Synced: 2024-06-13T06:45:21.368Z (5 months ago)
- Topics: compiler
- Language: JavaScript
- Homepage: https://codesandbox.io/s/github/saurabhdaware/blep
- Size: 45.9 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```js
boop a = 3;
boop b = 9;
bark(a + b);
```**Execute the code with**
```
blep hello.blep
```Output
```
12
```## Local Setup
```sh
git clone https://github.com/saurabhdaware/blep.git
cd blep/
yarn
yarn link # this register blep command in your terminalblep 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
- Absolutely NONE
This is a toy [@saurabhdaware](https://github.com/saurabhdaware) made because he was bored.