Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lioncat2002/helixlang

A small language compiler
https://github.com/lioncat2002/helixlang

compiler cpp helix language

Last synced: 10 days ago
JSON representation

A small language compiler

Awesome Lists containing this project

README

        

# HelixLang
a small language compiler written in C++
example program:
```rs
fn wrapper(n: number): number {
return n;
}

fn main(): void {
println(wrapper(12.34));
}
```

## Compile helix code:
- `helix .hlx`
- Help command at `helix -h`
## Todo:
- [x] Codegen using LLVM
- [x] Operator support
- [x] Loop support
- [x] Conditionals support
- [ ] Fix issue with token parsing. Eg: `while_test` gets tokenized into 2 seperate tokens `while` and `test`
- [ ] Variables support

## Requirements:
- LLVM 14
- Clang
- C++ 17
- Cmake 3.22 or greater