Hugorm
🐍 A Python-like scripting language
Install / Use
/learn @nilq/HugormREADME
<img align="right" width="30%" height="30%" src="https://i.ibb.co/jT8XDmz/hugorm.png" alt="hugorm">
Hugorm
What is Hugorm?
It is a dynamically typed programming language. Hugorm strives to be better version of the other snake language, with a heightened focus on <good things here>. The syntax is designed to be easy to read and easy to write, and runs on a constantly improving bytecode virtual machine.
Selling points
"Sssssss ..." - hugorm
- [x] Decently fast
- [x] Easy-to-learn syntax
- [x] Made in Rust
- [x] The REPL has colors
- [ ] ~~Absolutely massive community~~
- [x] Surprising bugs, maybe
Examples
Everyone loves examples. Below are some rather useless example programs, showcasing the raw syntax of Hugorm.
Functions
<img src="https://i.ibb.co/8bvCH8k/firsthug.png" alt="firsthug" border="0">Literally fun.
Loops
<img src="https://i.ibb.co/s9kd2NT/whilehug.png" alt="whilehug" border="0">Exotic loops
<img src="https://i.ibb.co/4s36sFm/loophug.png" alt="loophug" border="0">Data
<img src="https://i.ibb.co/6thjD25/hug.png" alt="hug" border="0">Interfaces
An interface will work like a set of pre-made functions that can be bound to new objects. Kinda like the way you implement traits on a struct in Rust.
<img src="https://i.ibb.co/N6d6cw3/interface.png" alt="interface" border="0">The future
Web
In the future, I want to have inline web things.
<img src="https://i.ibb.co/xY5KpKR/weblolhug.png" alt="weblolhug" border="0">TO-DO
- [x] Shunting-yard to be reviewed
- [ ] For-loops and iterators
- [ ] Interfaces
License
MIT
