helix is a fun and mostly useless toy language written in c. helix is based on an earlier project of mine called axis which was written in node.
// single comment
output::print('hello world')
// function declaration
fn say_hi() {
output::print('hi :)')
}
// variables
name = 'brian'
// conditionals
if name == 'brian' {
output::print('hi brian')
}
// math
output::print('2 + 2 =')
output::print(2+2);
git clone https://github.com/ebrian/helix
cd helix
make
sudo make install
helix your_file.hl
- language boilerplate
- functions
- variables
- simple math
- concatenation
- return values, early return, implicit return
- runaway recursion checking