Skip to content
HelixLangPublic

About

A small language compiler

Topics

Resources

Stars

21 stars

Watchers

1 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

Repository files navigation

HelixLang

a small language compiler written in C++ example program:

fn wrapper(n: number): number {
    return n;
}

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

Compile helix code:

  • helix <filename>.hlx
  • Help command at helix -h

Todo:

  • Codegen using LLVM
  • Operator support
  • Loop support
  • Conditionals support
  • Variables support

Requirements:

  • LLVM 23
  • Clang
  • C++ 17
  • Cmake 3.22 or greater

Build:

cmake -S . -B build \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DLLVM_DIR="$(llvm-config --cmakedir)" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 

About

A small language compiler

Topics

Resources

Stars

21 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages