Skip to content

MasterBrian99/loreal

Repository files navigation

Loreal Compiler

A purely functional language with compile-time reference counting.

Read the paper

see the Research Paper.

Features

  • Purely functional programming model
  • Compile-time reference counting via Perceus algorithm
  • Functional But In-Place (FBIP) optimization
  • LLVM-based code generation

Crates

  • loreal_ast - Abstract Syntax Tree definitions
  • loreal_lexer - Lexical analysis
  • loreal_parser - Recursive descent parser
  • loreal_semantic - Type checking and semantic analysis
  • loreal_mir - Mid-Level IR with CFG and optimizations
  • loreal_codegen - LLVM IR generation
  • loreal_runtime - Runtime support library
  • loreal_cli - Command-line interface

Building

cargo build --release

Usage

# Compile a Loreal file
loreal build input.lr -o output

# Run a Loreal program
loreal run input.lr

License

MIT OR Apache-2.0

About

experimental functional language for resource management via hardware-aware loop specialization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages