https://github.com/slowy07/xvr
The xvr programming language
https://github.com/slowy07/xvr
bytecode-interpreter programming-language
Last synced: 24 days ago
JSON representation
The xvr programming language
- Host: GitHub
- URL: https://github.com/slowy07/xvr
- Owner: slowy07
- License: mit
- Created: 2025-09-15T01:28:49.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-02-17T08:14:16.000Z (25 days ago)
- Last Synced: 2026-02-17T10:52:18.126Z (25 days ago)
- Topics: bytecode-interpreter, programming-language
- Language: C
- Homepage: https://wargaslowy.github.io/xvrlang-website/
- Size: 1.2 MB
- Stars: 12
- Watchers: 0
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

## Feature
- intermediate bytecode interpretation
> [!NOTE]
> For more information about project you can check the [docs](docs) for documentation about xvr, and you can check the sample code from [code](code) directory
## Build Instruction
> [!NOTE]
> For Windows using (mingw32 & Cygwin), For linux or Unix already support compiler
Build interpreter
```sh
# make the interpreter
make inter
# the compilation output
# can check on the /out directory
# including external library
```
```
make tests-cases
make inter
```
## Say wello with Xvr
```xvr
proc say_hello(name: string): string {
return "wello " + name;
}
```
## Print with Format Specifiers
```xvr
print("Hello %s", "World"); // Hello World
print("Number: %d", 42); // Number: 42
print("Float: %f", 3.14); // Float: 3.14
print("%s is %d years old", "arfy", 25); // arfy is 25 years old
```
Supported specifiers: `%s` (string/any), `%d`/`%i` (integer), `%f`/`%g` (float), `%%` (literal %), `\n` (newline)
## Need Tutorial?
You can check on [tutorial](docs/tutorial) for explore some tutorials.
## Side project XvrLang
- Neovim Syntax highlighting for XvrLang: [xvrlang-treesitter](https://github.com/WargaSlowy/xvrlang-treesitter)
- Vscode Syntax highlighting for XvrLang: [xvrlang-vscode](https://github.com/WargaSlowy/xvrlang-vscode)