# BBLANG

### Overview

Backbench currently supports BBLANG **v1.0.0**.

As backench is a [FAAS](https://en.wikipedia.org/wiki/Function_as_a_service) with integrated [APIGATEWAY](https://en.wikipedia.org/wiki/API_management). BBLANG functions (public ones) can be mapped directly with API endpoints.&#x20;

Functions can be of two types - Public, Private. Difference exist here that public are accessible to APIs while other is not.

```javascript
//For public function `foo:bar` accesible to backbench endpoints 
//and other functions
PUBLIC_FUNCTION_NAME:FUNCTION_NAME()->{
    //do things here
}

//For private function `bar`, accesible to other functions only
FUNCTION_NAME()->{
    //do things here
}
```

Standard libaries shipped with BBLANG <https://bblang.org/stdlib.html>.

To learn more about BBLANG visit <https://bblang.org/>.&#x20;

### Example

Create a **module** on backbench and paste the code.

```javascript
hello:world()->{
    "Halo by JLO"
}
```

Now, go to **endpoints** section, click on plus button - choose relative URI for API and then in dropdown select `hello:world.`

Open curl and browser, hit on the the API. You will see a "Halo".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://backbench.gitbook.io/backbench-docs/getting-started/bblang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
