Skip to content

hoh-zone/sui-llvm-lang

Repository files navigation

sui-llvm-lang

A compiled, native programming language whose surface syntax and type system are intentionally aligned with Sui Move (Move Book, Move Reference), lowering to LLVM IR instead of Sui bytecode.

This is not a drop-in replacement for on-chain Move: storage objects, transaction context, and the Sui runtime are out of scope for v0. The goal is syntax and semantic familiarity for Move developers plus AOT compilation to machine code.

Stack

Layer Choice
Language Move-compatible surface (modules, structs, abilities subset, generics, control flow)
Implementation Rust 1.94 (rust-version in workspace)
Backend LLVM (pin to a supported release, e.g. LLVM 19/20; see docs/ARCHITECTURE.md)
Frontend 自研 lexer + parser (Move Reference 为规范基准,不依赖 Sui move-compiler 解析器)
Repo layout rustc-style Cargo workspace: many small crates, clear phase boundaries

Building

cargo build --workspace

Examples & Mvpm

Documentation

  • docs/IMPLEMENTATION_THREADS.md五条并行实现线(RT / HIR / codegen / 驱动 / move-std)。
  • docs/STDLIB.md标准库设计(参考 Rust core / alloc / std:原语、集合、网络、HTTP 等)。
  • move-std/ — 标准库源码树占位(crates/core|alloc|std)。
  • docs/ARCHITECTURE.md — compiler phases, crate graph, LLVM strategy, Sui alignment.
  • docs/TASKS.md五条并行工作流任务清单与进度勾选项。

References

  • The Move Book
  • The Move Reference
  • 与 Sui 官方行为对照时,用黑盒 fixture(同一 .movesui move build 与本编译器下的预期)即可,不必链接其 AST。

About

sui lang llvm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors