# badum-tss

> Simple JS-based language

Latest version **0.0.2** (published 2018-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install badum-tss
pnpm add badum-tss
yarn add badum-tss
bun add badum-tss
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-05-18 |
| First published | 2018-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 50.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alexandr Pashkevich |
| Maintainers | chank1e |

## Links

- npm: https://www.npmjs.com/package/badum-tss
- Repository: https://github.com/Chank1e/badum-tss
- Homepage: https://github.com/Chank1e/badum-tss#readme
- Issues: https://github.com/Chank1e/badum-tss/issues
- npm.io page: https://npm.io/package/badum-tss

## Dependencies (1)

- [badum-tss](https://npm.io/package/badum-tss.md) ^0.0.1

## Recent versions

- 0.0.2 (latest) — 2018-05-18
- 0.0.1 — 2018-05-18

## README

<p align="center">
  <img src="https://raw.githubusercontent.com/Chank1e/badum-tss/master/img/logo.png"/>
</p>

## Welcome to BadumTss (BTSS) official lang repository


BTSS is a simple JavaScript-based language which can be used to achieve... I don't really know for what)

```s
$ npm install badum-tss --save

# or

$ yarn add badum-tss
```

---

### Constructor

```javascript

const BTSS = require('badum-tss');
const tks = BTSS(code[, modules, need_to_run]); //returns array of tokens

```


<p align="center">
  <img src="https://raw.githubusercontent.com/Chank1e/badum-tss/master/img/banners/syntax.jpg"/>
</p>

### Begin
Firstly you need to write begin word\
__Default__ is 'Badum'

---

### End
In the end you need to write end word\
__Default__ is 'Tss'

---

### Separator
Between every command you need to type separator
__Default__ is '.'

---

### Define variables 
__Default__ define variable word is 'Suppose that'  
__Default__ equals word is 'stores'

#### Example:
```
Badum.
Suppose that A stores 2.
Suppose that B stores 'hello world'.
Tss.
```
#### Now A===2, B==='hello world'

---

### Import functions
You can import any functions as a second argument and use them in BTSS with import keyword
#### Sequence:
- Write functions
- Create array of functions
- Send array as second argument
- Import function in BTSS-lang

#### Example:
```javascript
const BTSS = require('badum-tss');
function print(...args){
  console.log(...args);
}
const code = `
Badum.
Lets take print.
Suppose that A stores 1.

I want the print to bring (A).
Tss.
`;

BTSS(code,[print]);
```
That code will log '1' to console.

---

### Call function with arguments
If you've already import any function, you want to call it with arguments. 
#### You need:
- Write call function keyword
- Write function name
- Write call function with arguments operator
- Write arguments in the round brackets

#### Example:
```javascript
const code = `
Badum.
Lets take print.
Lets take square.

Suppose that A stores 1.
Suppose that B stores 2.
Suppose that C stores 4.

I want the print to bring (A,B).
I want the square to bring (C).

Tss.
`;

const BTSS = require('badum-tss');

function print(...args){
    console.log(...args);
}
function square(a){
    print((+a)**2)
}

BTSS(code,[print,square]);
```

---
_Source: https://npm.io/package/badum-tss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
