Skip to content
raghavendrashandePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BasicLang

BasicLang is a minimal, experimental esoteric language designed for simplicity and readability while still being quirky enough to stand out.
It supports basic variables, loops, conditionals, printing, and program exit codes — all with a playful syntax.

✨ Syntax Overview

  • Variable Declaration

    imagine x = 10;
    
  • Loop

    doit (n) { ... }
    

    Runs the block n times.

  • Conditional

    is (condition) { ... } else { ... }
    
  • Print

    print("Hello World");
    
  • Exit Program

    yeet 0;
    

📦 Installation & Setup

# Clone the repository
git clone https://github.com/raghavendrashande/esolang.git
cd esolang

# Build 
cmake -S . -B build
cmake --build build

▶ Usage

# Run a BasicLang program
./basiclang path/to/file.bl

📝 Example Program (test.bl)

imagine x = 1;

doit (10) {
    is ((x % 2) == 0) {
        print("even");
    } else {
        print("odd");
    }
    x = x + 1;
}

yeet 255;

Output:

odd
even
odd
even
odd
even
odd
even
odd
even

Exit Code: 255

[P.S - To checkout exit code, use "echo $?" on linux, "echo %ERRORLEVEL%" in cmd or "$LASTEXITCODE" on powershell]


📜 License

MIT License — see LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages