🧠 shashx-lang — VS Code Extension
shashx-lang is the official Visual Studio Code extension for the shashx
programming language. This extension provides syntax highlighting, language configuration, and an enhanced development experience for working with .sx
files. Whether you're just experimenting with language design or building real-world interpreters, shashx-lang
brings clarity and productivity to your workflow.
🚀 Features
- 🎨 Syntax Highlighting: Clear and readable syntax highlighting for
.sx
files.
- 📝 Language Configuration: Bracket and comment support tailored specifically for
shashx
.
- 🔤 File Association: Automatically associates
.sx
files with the shashx
language.
- 💡 Custom Keywords & Symbols: Highlights unique constructs like
pf
, flp
, wlp
, dlp
, and the comment symbol ~>
.
📜 Language Overview: shashx
shashx
is a dynamically typed, interpreted programming language designed for simplicity and educational use. It combines familiar programming constructs with a clean syntax, making it ideal for learning, prototyping, or experimenting.
✅ Key Syntax
- Print:
pf("Hello")
or pf >message
- Variables:
@x = 10
- Conditionals:
if
, elf
, el
- Loops:
flp
, wlp
, dlp
- Comments:
~> This is a comment
🗂 File Association
Files with the .sx
extension are automatically recognized and treated as shashx
source files.
📦 Installation
You can install the extension directly from the Visual Studio Code Marketplace:
- Open Visual Studio Code.
- Go to the Extensions tab.
- Search for
shashx-lang
.
- Click Install.
Or run this command in your terminal:
code --install-extension shashwat-sx.shashx-lang
🔧 Configuration
Once installed, .sx
files will automatically use the shashx
language mode. You can also manually set the language mode:
- Click on the language indicator in the bottom right corner of VS Code.
- Select shashx from the list.
💼 Use Cases
- Language development and design
- Educational demos for interpreters and compilers
- Creative coding with a minimalist language
- Building simple CLI tools using interpreted logic
🖼 Extension Icon and Branding
To add a custom icon or logo to your extension (for better visibility in the marketplace):
- Place your logo image (recommended size: 128x128) in the root of your extension (e.g.,
icon.png
).
- Update your
package.json
with:
"icon": "icon.png"
- Re-publish the extension using:
vsce publish
🤝 Contributing
Want to help improve shashx
or the extension?
- Submit issues or feature requests on the GitHub repo (coming soon).
- Fork the project and create pull requests.
📄 License
This extension is open-source and licensed under the MIT License.
🙋♂️ Author
Made with ❤️ by Shashwat Singh
Follow the project and stay updated with more awesome tooling for the shashx
language.