Sanskrit Programming Language Release
A complete Sanskrit-inspired programming language with modern capabilities.
Features
- Sanskrit keywords and Devanagari script support
- Interactive REPL with command history
- Built-in GUI editor with syntax highlighting
- Standard library modules (Math, String, I/O)
- Cross-platform support (Windows, macOS, Linux)
Installation Options
Windows
- Download
sans.exe
andinstall.bat
- Run
install.bat
as Administrator to install and add to PATH - Or manually place
sans.exe
in your preferred directory and add to PATH
macOS / Linux
- Download
sans
binary andinstall.sh
- Run
sudo ./install.sh
to install system-wide - Or manually place
sans
in/usr/local/bin/
Usage
After installation, you can use the sans
command:
sans program.sans # Run a Sanskrit program
sans --repl # Start interactive REPL
sans --editor # Launch GUI editor
sans --help # Show help
sans --version # Show version
VS Code Integration
After installing and adding to PATH, you can run Sanskrit programs directly in VS Code terminal:
- Create a
.sans
file with Sanskrit code - Open terminal in VS Code (Ctrl+
or Cmd+
) - Run
sans yourfile.sans
Examples
Example Sanskrit program (hello.sans
):
# नमस्ते संसार!
मुद्रण("नमस्ते संसार!")
धारणा नाम = "राम"
मुद्रण("नमस्कार", नाम)
# गिनती
धारणा i = १
यावत् i <= ५ {
मुद्रण(i)
i = i + १
}
Run with: sans hello.sans