A purely functional language with compile-time reference counting.
see the Research Paper.
- Purely functional programming model
- Compile-time reference counting via Perceus algorithm
- Functional But In-Place (FBIP) optimization
- LLVM-based code generation
loreal_ast- Abstract Syntax Tree definitionsloreal_lexer- Lexical analysisloreal_parser- Recursive descent parserloreal_semantic- Type checking and semantic analysisloreal_mir- Mid-Level IR with CFG and optimizationsloreal_codegen- LLVM IR generationloreal_runtime- Runtime support libraryloreal_cli- Command-line interface
cargo build --release# Compile a Loreal file
loreal build input.lr -o output
# Run a Loreal program
loreal run input.lrMIT OR Apache-2.0