WMXPY / Barklang

:dog: If there are no dogs in Heaven, then when I die I want to go where they went.

Home Page:https://mengw.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Barklang

npm version Build Status codecov Gitter downloads

🐶 If there are no dogs in Heaven, then when I die I want to go where they went.

bkc is a simple programming language, based on javascript. All bkc lang will run in a sandbox environment, so bkc is safe for untrust user input.

Install

npm install bkc --save

You can use bkc in nodeJS environment or browser (commonjs)

Usage

Use bkc without external function.

import bkc from 'bkc';
// es5
const bkc = require('bkc').default;

bkc("print 'hello world!'"); // hello world!

Use bkc with an external function.

import bkc from 'bkc';
// es5
const bkc = require('bkc').default;

bkc("hello 'hello world!'", [
    {
        command: 'hello',
        func: (arg) => {
            console.log(arg);
        }
    }
]); // hello world!

Documents

Created by Ghoti-CLI 3.3.8

About

:dog: If there are no dogs in Heaven, then when I die I want to go where they went.

https://mengw.io

License:MIT License


Languages

Language:TypeScript 98.3%Language:Makefile 1.1%Language:JavaScript 0.6%