Skip to content
/ Barklang Public

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

License

Notifications You must be signed in to change notification settings

WMXPY/Barklang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •