Combines the best features and syntax from both languages.
Networking, file I/O, math functions, and system operations.
Uses curly braces for blocks, making code structure clear.
Try code interactively with the built-in REPL.
# 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
ShravScript is implemented in Python and requires Python 3.6 or higher.
Clone the repository or download the latest release from the download page.
Run pip install requests
to install required dependencies.
Create a .shs
file and run it with python main.py your_program.shs
.