📄 Syntax Reference

Bart++ Syntax

A look at the core syntax and structure of the Bart++ programming language.


Hello World
print("Hello World");
Hotkey
hotkey F1 {
  Run("notepad");
}
Web Route
route "/" {
  H1("Welcome");
}
📦
Variables

Variables store data like text, numbers, lists, and objects. Use let for standard, mut for mutable, and const for constants.

Bart++
let name = "Bartek";
mut score = 100;
const version = "0.1";
Functions

Functions organize reusable blocks of code. Define them with the func keyword.

Bart++
func hello() {
    print("Hello World");
}
⌨️
Hotkeys

Hotkeys allow automation using keyboard shortcuts — bind any key to a block of code.

Bart++
hotkey F1 {
    Run("notepad");
}
🌐
Web Syntax

Bart++ includes built-in web and page systems — define routes and render HTML-style elements natively.

Bart++
route "/" {
    H1("Welcome");
}
🤖
Automation Syntax

Automation tools can control apps, typing, windows, and the mouse — all natively in Bart++.

Bart++
Send("Hello");
Mouse.click();
← Back to Bart++ See Features →