Release | Quick Start | Installation | Documentation | Editors Support | License
A simple compiling language written in Rust
Steps to start writing on hiw-lang:
- Install language (see in Installation)
- Create file with
.hiw
extension - Write your first program:
// example.hiw
// Hello World program
print("Hello World!");
// Creating variables
a = 1;
b = 2;
c = a + b;
str1 = "Hello, ";
str2 = "World!";
print(str1 + str2);
// If/Else constructions
a = 1;
if a < 5 {
print("less");
} else {
print("bigger");
};
// Create functions
define foo(x) {
print(x);
};
a = 2;
foo(1);
foo(a);
// Use functions on variables too!
a.foo();
// Use dynamic arrays
arr = [1, "string", true];
// Use cycles
a = 0;
while a < 5 {
print(a);
a = a + 1;
};
for i in 10 {
print(i);
};
- Compile and run it:
hiw example.hiw
- Compile it to binary file:
hiw example.hiw output
./output
- Open your terminal.
- Paste auto-install script:
curl -s https://raw.githubusercontent.com/mealet/hiw-lang/master/hiw-lang-install.sh | sh
- Restart the terminal and type
hiw
command. You'll see instructions about using compiler. - Write code!
- Install Rust from official site
- Download hiw from latest release and unpack it anywhere.
- Add directory where you unpacked release to PATH
- Restart the terminal and type
hiw
command. You'll see instructions about using compiler. - Write code!
- Open your terminal
- Paste this command:
curl -s https://raw.githubusercontent.com/mealet/hiw-lang/master/uninstall.sh | sh
- Restart terminal
- Delete unpacked hiw folder with all binaries inside.
Editors which supports hiw-lang syntax:
Project licensed under the BSD-3 License -> License File