app like that
संस्कृत Programming Language
संस्कृत Programming Language

Programming language that lets you write code in Sanskrit using Devanagari script, similar to JavaScript. Supports Devanagari syntax, JavaScript-like environment, and can run on Node.js. Features include function declarations, string operations, and arithmetic expressions. More features like variables, loops, and arrays are coming soon. Open source and available on GitHub.

Features

Sanskrit-Based Syntax

Write code using Sanskrit words and grammar, making programming more familiar for Sanskrit speakers.

Devanagari Support

Native support for Devanagari script and numerals, allowing seamless integration of traditional scripts in coding.

JavaScript Based

Easy to install and run with Node.js, leveraging the power and simplicity of JavaScript.

Interpreter

Facilitates fast development with immediate feedback, streamlining the coding and testing process.

Cross-Platform Availability

Runs on any platform where Node.js is available, increasing accessibility and flexibility for developers.

Sanskrit Program Installation

Install the Sanskrit programming language using npm with the command `npm install -g sanskrit-lang`. This allows you to write and execute Sanskrit scripts.

First Sanskrit Program

Walkthrough to create your first program in a file named `test.sms` which outputs `namaste`. Execute it using `sanskrit run test.sms`.

Basic Concepts - Functions

Define functions using the keyword `avid`. Demonstrates a sample function and how to use it.

Basic Concepts - Strings

Work with strings written in both Devanagari and Latin scripts. Shows examples of both text types.

Basic Concepts - Numbers

Use either Devanagari or Arabic numerals in your programs. Examples show how to use both numeral systems.

Command Line Interface

Access the Sanskrit CLI to run scripts and start the REPL (Coming Soon). Sample command: `sanskrit run program.sms`.

Devanagari Script for Syntax

Uses Devanagari script for keywords and identifiers in programming syntax.

Data Types

Includes various data types like Number, String, Boolean, Array, and Object.

Control Flow

Provides structures for controlling the flow of the program, including conditional statements.

Standard Library

Offers a standard library with built-in functions and modules for common tasks.

Advanced Topics

Covers complex subjects such as memory management, concurrency, modules and packages, and error handling.

Hello World Example

A simple program that prints 'Hello World!' to the console.

Basic Calculator

Examples demonstrating basic arithmetic operations like addition, subtraction, multiplication, and division.

String Operations

A program that shows how to concatenate strings and print them.

Number Systems

Examples on how to represent and print numbers in binary and Arabic numeral systems.

Variables and Control Flow

Upcoming feature showcasing the use of variables and control structures like if-else statements.

Arrays

Upcoming feature demonstrating array creation and accessing elements.

Objects

Upcoming feature illustrating object creation and property access.

Write Code in Sanskrit

Enables developers to write code using Sanskrit instead of traditional programming syntax like `if`, `else`, `for`, etc.

Denavagraha Support

Supports sentences and phrases written in different styles of Sanskrit, like 1, 2, 3, or 1, 2, 3, for versatile coding.

Function Definition and Calling

Allows defining and calling functions using Sanskrit syntax, making the programming experience rooted in the ancient language.

Comments

Allows for single-line and multi-line comments in code, similar to popular programming languages.

Functions

Functions are declared using the 'karyam' keyword and can include parameters and logic.

Strings

Supports strings in both Devanagari and Latin scripts with string concatenation capabilities.

Numbers

Supports both Devanagari and Arabic numerics for handling numbers.

Built-in Functions

Includes built-in printing functions to output values to the console.

Variables (Coming Soon)

Upcoming support for variable declaration and usage in code.

Control Flow (Coming Soon)

Upcoming support for control structures like if-else statements, loops, etc.

Arrays (Coming Soon)

Upcoming feature to handle arrays including access by index.

Objects (Coming Soon)

Upcoming feature to manage objects with properties and methods.

Error Messages

Provides error messages for common issues like mispelled function names or syntax errors.