Skip to content

ChertaPro/hulk-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HULK Compiler

A compiler for the HULK programming language written in Rust, targeting LLVM IR.

Pipeline

Source (.hulk)
→ Lexer [logos]
→ Parser [LALRPOP / LALR(1)]
→ Semantic Analysis + Type Inference
→ LLVM IR [inkwell]
→ Native binary

Build

# Requires LLVM 17
export LLVM_SYS_170_PREFIX=/usr/lib/llvm-17

cargo build --release

Usage

./target/release/hulkc program.hulk

Features

  • Full HULK language support
  • Static type checking
  • Type inference (extension)
  • LLVM-optimized native code generation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages