ShravScript

ShravScript

A custom programming language that combines the best of Python and JavaScript

Features

🧩

Python/JavaScript Inspired

Combines the best features and syntax from both languages.

🔄

Built-in Libraries

Networking, file I/O, math functions, and system operations.

📝

Clear Syntax

Uses curly braces for blocks, making code structure clear.

🔍

Interactive REPL

Try code interactively with the built-in REPL.

Code Example


# Fibonacci function in ShravScript
fn fib(n) {
    if n <= 1 {
        return n
    } elif n == 2 {
        return 1
    } else {
        return fib(n - 1) + fib(n - 2)
    }
}

print(fib(8))  # Output: 21
            

Getting Started

  1. Install Python 3.6+

    ShravScript is implemented in Python and requires Python 3.6 or higher.

  2. Download ShravScript

    Clone the repository or download the latest release from the download page.

  3. Install Dependencies

    Run pip install requests to install required dependencies.

  4. Run Your First Program

    Create a .shs file and run it with python main.py your_program.shs.