Bug
A stack-based programming language that compiles to Bug Virtual Machine
Install / Use
/learn @edilson258/BugREADME
Bug Language
Bug is a stack-based programming language with a functional paradigm, developed for educational purposes.
The program written in bug language is compiled by the bug compiler (bugc) to an intermediate bytecode and serialized to a file, then the Bug Virtual Machine (bvm) loads the file containing the bytecode and execute.
Hello, world!
hello.bug
fn main() void -> "Hello, world!" @write;
More examples
sum two integers
fn sum(int lhs, int rhs) int -> lhs rhs +;
fn main() void -> 34 35 @sum @write;
Try it now
To use this language your can download a release for you platform or go through the source code.
From source code
- clone the repository
git clone https://github.com/edilson258/bug.git
- Compile and run a bug program
cargo run --bin bugc <some_program>.bug
cargo run --bin bvm out.bin
Now see Examples for help. Happy hacking!
Contributions
Feel free to fork and play with it. PRs are welcome!💯
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
