A lightweight, dynamically-typed interpreted language built for simplicity and learning.
Get Startedshashx is a beginner-friendly, custom-designed programming language aimed at demystifying how programming languages work under the hood. It is built with simplicity and clarity in mind β offering clean syntax, custom logic structures, and real-time execution through an interpreter model.
Developed by Shashwat Singh, shashx serves as both a personal project and a powerful educational tool that helps aspiring developers understand the core concepts behind language design.
Whether you're a curious developer or an enthusiast interested in compiler theory, shashx opens the doors to understanding what's behind every line of code you write β by letting you build and run your own.
flp
, wlp
, dlp
if
, elf
, el
pf()
shashx is built from scratch using JavaScript and follows a basic interpreter pattern. Here's how it works internally:
.sx
for source code files.This structure makes shashx simple, fast, and easy to extend!
Install via NPM (Recommended)
npm install -g shashx
Run a .sx
File
shashx hello.sx
hello.sx
pf("Hello from shashx!");
Terminal Output
Hello from shashx!
pf("Hello, World!");
@x = 10
@y = 20
pf(>x)
pf(>y)
flp @i = 0 to 3 {
pf("flp i = " > i);
}
~> This is a single-line comment
Use ~>
to write single-line comments in shashx.
@j = 0;
wlp j < 2 {
pf("wlp j = " > j);
j = j + 1;
}
@k = 0;
dlp {
pf("dlp k = " > k);
k = k + 1;
} wlp k < 2;
@x = 10
if x > 5
pf("Greater than 5")
elf x == 5
pf("Equals 5")
el
pf("Less than 5")
Add syntax highlighting for shashx in your VS Code editor!
.sx
)βββββββββββ βββ ββββββ βββββββββββ ββββββ βββ βββββββββββ ββββββββββββββββββββββ βββββββ ββββ ββββββββββββββββββββββββββββββ βββββββ βββββββ ββββββββββββββββββββββββββββββ βββββββ βββββββ βββββββββββ ββββββ ββββββββββββββ ββββββ βββ βββββββββββ ββββββ ββββββββββββββ ββββββ βββ
Install it Now!! shashx
Want to improve shashx? Whether it's fixing bugs, adding new features, or improving documentation β every contribution counts!
Bug reports, feature ideas, and suggestions are always welcome. Let's build something great together!
Jump straight into the GitHub repository and start collaborating on the future of shashx.
π Go to GitHub RepoDonβt forget to β the repo if you find it useful!
Hey there! π Iβm Shashwat Singh
A passionate developer, security enthusiast, and creator of the shashx
language. I'm always open to interesting conversations and cool collaborations!
"Code is not just a skill, it's a superpower π₯"
π§ Email: singhshashwat521@gmail.com
π GitHub: github.com/shashwat-singh-01
π LinkedIn: linkedin.com/in/shashwat-singh-200495248