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


Keywords
javascript, auto, ast, bark, barklang, typescript
License
MIT
Install
npm install bkc@3.2.1

Documentation

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