Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lioncat2002/helixlang
- Owner: Lioncat2002
- Created: 2024-08-07T07:12:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-25T18:37:31.000Z (about 1 month ago)
- Last Synced: 2024-10-08T13:35:54.695Z (30 days ago)
- Topics: compiler, cpp, helix, language
- Language: C++
- Homepage:
- Size: 5.24 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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