ConstLang is a lightweight browser-based programming language that compiles to JavaScript.
| Command | Description | Example |
|---|---|---|
constlib new |
Opens file picker to load .clg files. |
compiler.add(); |
constlang build |
Starts compilation process. | compiler.start(); |
constlang publish |
Downloads compiled JS file as output.js. |
compiler.download(); |
This document lists all built-in commands available in Constlang v4.5.0. Each command is mapped to its corresponding runtime or target-language behavior.
Defines a custom command using pattern–template mapping.
new.command()[
print ${cmd^text}
command()
Console.WriteLine(${text});
]
Injects raw native code directly.
naviteapi() {
Console.WriteLine("Native");
}
Imports another .clg file.
#import utils.clg
Loads external source code.
#install https://example.com/lib.clg
int x = 10;
intx pi = 3.14;
string name = "Constlang";
ft ready = true;
Defines constant values.
static int MAX = 100;
console.print("Hello");
console.error("Error");
alert.data("Message");
read.title("Enter value:");
x = read.int32();
get("endpoint");
This command has been removed.
file.add("a.txt","data");
system.beep(500);
- Commands: 74
- Macro Systems: 1
- Version: Constlang v4.0.0
