@tarunjawla/sutra
v2.1.1
Published
A tiny Sanskrit-style joke language that compiles to JavaScript
Maintainers
Readme
Sutra
A tiny Sanskrit-style joke language that compiles to JavaScript.
Example
मान x = 3
यावत् (x > 0) {
मुद्रय("नमस्ते")
x = x - 1
}This compiles to:
let x = 3;
while (x > 0) {
console.log("नमस्ते");
x = x - 1;
}Installation
npm install -g sutraUsage
sutra run hello.sktDisclaimer
This is a joke language. It's not for production use. It's made for fun and to learn how compilers work.
Playground
The website is a Next.js React app with Chakra UI.
cd website
npm install
npm run devThen open http://localhost:3000 in your browser.
Keywords
मान→letमुद्रय→console.logयावत्→while
That's it. No if, no functions, no imports. Just the basics.
