Ulta Purno Ongsher Engine
Bangladeshi-inspired esoteric language

Code that goes a little ulta.

Ulta is an experimental interpreted language with Banglish keywords, arithmetic, variables, conditions, loops, functions, and reverse block execution.

ulta-repl
ulta> banao x = 0;
ulta> jotokhon x < 3 {
  x = x + 1;
  dekhao x;
}
1
2
3
Live playground

Write. Run. Inspect.

Test Ulta code directly in your browser. Use Ctrl + Enter to execute the current program.

main.ulta
Ulta source code
Ready
stdout
Captured program output
Ctrl + Enter
Click “Run script” to execute your Ulta code.
Idle
Language reference

Documentation

Syntax, execution rules, installation instructions, examples, limits, and the complete Banglish error reference for Ulta.

Overview

Ulta is an interpreted programming language. Source code is parsed into statements and then executed by the interpreter.

Ulta uses Banglish-inspired keywords such as banao, dekhao, jodi, nahole, jotokhon, and kaaj.

Statements normally end with semicolons. Blocks use curly braces.

Important: Ulta's defining gimmick is that statements inside blocks and function bodies execute in reverse order.
Purno Ongsher: The reverse execution behavior is an intentional language rule rather than a playground bug.

Installation Guide

Follow these steps to install Ulta from the GitHub repository.

1. Install Node.js

Install Node.js. npm is included with Node.js.

Check Node.js and npm
node --version
npm --version

2. Install Git

Check Git
git --version

3. Clone the repository

Terminal
git clone https://github.com/notmubasshir/Ulta-lang.git
cd Ulta-lang

4. Install dependencies

Terminal
npm install

5. View available commands

Terminal
npm run

6. Start development server

Terminal
npm run dev

7. Build

Terminal
npm run build

8. Preview

Terminal
npm run preview

Common installation problems

  • npm is not recognized: install Node.js and restart VS Code.
  • Cannot find module: make sure the terminal is inside the Ulta-lang folder.
  • Dependencies are missing: run npm install again.
  • Unknown npm command: run npm run.

Basic Syntax

A simple Ulta program is made from declarations, assignments, output statements, blocks, and function calls.

basic.ulta
banao x = 10;
x = x + 5;
dekhao x;

Semicolons

Simple statements are normally terminated with ;.

Blocks

Conditional, loop, and function bodies use { ... }.

jodi x > 5 {
    dekhao x;
}

Comments

The current TypeScript grammar should be treated as the authoritative implementation. Do not rely on undocumented comment syntax.

Variables

Use banao to declare a variable. Assignment changes an existing variable.

variables.ulta
banao score = 10;
score = score + 5;
dekhao score;

Variable naming rules

  • A name may begin with a letter or underscore.
  • The remaining characters may be letters, numbers, or underscores.
  • A variable cannot start with a number.
  • Reserved language keywords cannot be used as variable names.
valid
banao score = 10;
banao player_name = "Mubasshir";
banao _value = 20;

Data Types

Ulta values can be:

  • Numbers
  • Strings
  • Booleans
  • null

Boolean values

Ulta supports the Banglish boolean names sotti and bhul.

banao a = sotti;
banao b = bhul;

dekhao a;
dekhao b;

Null

banao value = null;
dekhao value;

Strings

Strings may use single or double quotation marks.

dekhao "Hello";
dekhao 'Bangladesh';

String escapes

Supported escapes include:

  • \n — newline
  • \t — tab
  • \" — double quote
  • \' — single quote
  • \\ — backslash
dekhao "Hello\nBangladesh";
dekhao "Name:\tUlta";

Arithmetic

Ulta supports:

  • + addition / string concatenation
  • - subtraction
  • * multiplication
  • / division
  • % remainder
banao a = 8;
banao b = 3;

dekhao a + b;
dekhao a - b;
dekhao a * b;
dekhao a / b;
dekhao a % b;

String concatenation

banao name = "Ulta";
dekhao "Hello, " + name;
Arithmetic restriction:

Subtraction, multiplication, division, and modulo require numeric operands.

Conditions

Use jodi for a condition and nahole for the alternative branch.

banao x = 7;

jodi x > 5 {
    dekhao "besh bhalo";
}

nahole {
    dekhao "abar chesta koro";
}

Comparisons

  • ==
  • !=
  • >
  • <
  • >=
  • <=

Logical operators

  • && — AND
  • || — OR
  • ! — NOT
banao age = 18;
banao student = sotti;

jodi age >= 16 && student == sotti {
    dekhao "allowed";
}

Loops

Use jotokhon to repeat a block while its condition remains true.

loops.ulta
banao x = 0;

jotokhon x < 3 {
    x = x + 1;
    dekhao x;
}
Important: Statements inside the loop body execute from bottom to top because the block is reversed.

The interpreter limits a loop to 1000 iterations.

Functions

Declare a function using kaaj.

functions.ulta
kaaj greet(name) {
    dekhao "Hello, " + name;
}

greet("Bangladesh");

Multiple parameters

kaaj add(a, b) {
    dekhao a + b;
}

add(10, 20);

Function rules

  • Parameters must have valid variable names.
  • Duplicate parameter names are rejected.
  • A function may have at most 20 parameters.
  • The number of arguments must exactly match the number of parameters.
  • Function calls do not produce expression return values.
  • Function execution is affected by reverse block execution.
  • Maximum function call depth is 100.

Scope

Function calls create a local scope based on the caller's current scope.

Function arguments are evaluated in the caller's scope before parameters are assigned.

banao x = 10;

kaaj show(value) {
    dekhao value;
}

show(x);

The Purno Ongsher Gimmick

Ulta reverses parsed statements inside blocks and function bodies.

This is the core joke and defining behavior of the language.

reverse.ulta
banao x = 0;

jotokhon x < 3 {
    dekhao x;
    x = x + 1;
}

The body is parsed and then executed in reverse order. Therefore the assignment can occur before the output statement.

Purno Ongsher Engine: "Ulta" is not merely the name — execution inside blocks is intentionally ulta.

Interpreter Limits

Limit Value Purpose
Loop iterations 1000 Prevents runaway loops.
Function call depth 100 Prevents uncontrolled recursion.
Function parameters 20 Keeps declarations manageable.

Bangla Error Messages

Ulta's interpreter uses structured error codes. Each error contains a code, a Banglish/Bangla message, and a hint explaining how to fix it.

Error format:
[E###] Line N: message
  Code: source line
  Hint: what to do

The following reference documents the complete E004–E044 error range used by the TypeScript interpreter.

Code Bangla / Banglish error message Hint
E004 Unexpected closing brace '}'. Check if every block has a matching '{'.
E005 Block-er pore '{' pawa jayni. Put an opening brace '{' after the block header.
E006 Block-er closing '}' pawa jayni. Put a matching '}' at the end of the block.
E007 Function declaration-er syntax vul. Correct format: kaaj functionName(x, y) { ... }
E008 Function parameter-er naam thik nai. Start the parameter name with a letter or underscore.
E009 Function-e duplicate parameter ache. Give each parameter a different name.
E010 Ei block bujha gelo na. Supported blocks are jodi, nahole, jotokhon, and kaaj.
E011 Loop 1000 iteration-er beshi cholte parbe na. Check the condition so that the loop eventually becomes false.
E012 dekhao-er value deya hoyni ba syntax thik nai. Example: dekhao x;
E013 banao-te '=' pawa jayni. Example: banao x = 10;
E014 Variable-er value khali rakha jabe na. Provide a valid expression after '='.
E015 Ei variable age declare kora hoyni. Use banao name = value; first.
E016 Assignment-er value khali. Provide a valid expression after the assignment.
E017 Ei line bujha gelo na. Check the syntax of the line.
E018 Ei name-er kono function nei. Create the function first: kaaj name() { ... }
E019 Function-er argument shongkha milche na. Provide exactly the same number of arguments as parameters.
E020 Function call depth-er limit cross koreche. Reduce recursion. Maximum depth is 100.
E021 Condition khali rakha jabe na. Example: jodi x > 5 { ... }
E022 Condition incomplete. Provide valid values on both sides of the comparison.
E023 Condition theke boolean value pawa jayni. The condition's result must be sotti or bhul.
E024 Expression khali. Provide a valid value inside the expression.
E025 Operator sudhu number-er sathe use kora jabe. Use numeric values for arithmetic.
E026 Zero diye division kora jabe na. Check if the divisor is zero.
E027 Function call expression-er vitore use kora jabe na. Use the function call as a separate statement.
E028 Ei variable ba value pawa jay nai. Check if the variable is declared and the spelling is correct.
E029 Ei comparison-er jonno numeric value dorkar. Use numbers for >, <, >=, <=.
E030 Variable-er naam valid na. Start the name with a letter or underscore.
E031 Reserved keyword variable name hisebe use kora jabe na. Use a different variable name.
E032 Function argument khali. Provide valid arguments between commas.
E033 Function-e 20-er beshi parameter deya jabe na. Keep the number of parameters at 20 or less.
E034 Reserved command function name hisebe use kora jabe na. Avoid jodi, nahole, banao, dekhao, etc.
E035 jotokhon-er condition khali. Example: jotokhon x < 10 { ... }
E036 Loop-er variable/state change hocche na. Update a value inside the loop that affects the condition.
E037 && operator-er use thik nai. Use && between two valid conditions.
E038 || operator-er use thik nai. Use || between two valid conditions.
E039 Variable-er naam khali. Provide a valid name for the variable.
E040 Variable-er naam number diye shuru kora jabe na. Example: score1 valid, 1score invalid.
E041 Arithmetic expression incomplete. Provide valid values on both sides of the operator.
E042 Zero diye modulo kora jabe na. Check if the right side of % is zero.
E043 Ei variable already declare kora hoyeche. Do not use banao for the same variable again in the same scope.
E044 String quotation bondho hoyni. Provide the closing " or ' for the string.
Example:
[E028] Line 1: Ei variable ba value pawa jay nai: 'score'.
  Code: dekhao score;
  Hint: Check if the variable is declared and the spelling is correct.

Complete Examples

Variables + arithmetic

banao a = 10;
banao b = 20;
banao total = a + b;

dekhao total;

Conditional

banao score = 85;

jodi score >= 80 {
    dekhao "Excellent";
}
nahole {
    dekhao "Keep trying";
}

Logical conditions

banao age = 18;
banao student = sotti;

jodi age >= 16 && student == sotti {
    dekhao "Eligible";
}

Loop

banao x = 0;

jotokhon x < 5 {
    x = x + 1;
    dekhao x;
}

Function

kaaj greet(name) {
    dekhao "Hello, " + name;
}

greet("Mubasshir");

Strings

banao first = "Bangla";
banao second = "sh";
dekhao first + second;