Introduction to Varjus
Varjus is a dynamically typed scripting language made for use with C++. Its syntax is similar to JavaScript but follows strict rules.
⚠️ Varjus is not optimized yet. Expect slower execution for now.
Main Features
- It uses JavaScript-like syntax but with added safeguards.
- Code can be organized into modules.
- Built-in types—strings, arrays, and objects—include useful built-in methods.
- No object oriented programming.
- Type conversions are well-defined, and errors that don't make sense will stop the program.
- Varjus connects directly with C++.
Integration with C++
Varjus is designed to be embedded in C++ programs. It lets you expose C++ functions and objects to your scripts, so the scripting language can control or extend the host application. This is useful for situations like game engines, where you want dynamic behavior without rebuilding the whole program.
Hello, world!
fn main()
{
console.log("Hello, world!");
}