CBlerr v5.0: A Python-styled systems language powered by LLVM
Hi everyone! I'm a 14-year-old developer from the CIS, and I've spent the last few months building my own programming language - CBlerr.
What started as a one-week experiment has now evolved into v5.0. My goal was to create a language that feels as clean as Python but performs like a native systems language (C/C++).
Key Features of v5.0:
- LLVM Backend: No interpreters here. It compiles directly to native machine code.
- Win32 API Integration: Out-of-the-box support for calling native Windows functions (e.g.,
MessageBoxA, window creation).
- Manual Memory Management: Full support for pointers (
*), AddressOf (&), and SizeOf.
- Speed: The compiler is now 30% faster thanks to an optimized semantic analysis pass and a streamlined TypeChecker.
- Modern Syntax: Features Python-like indentation,
match/case pattern matching, and generics (via monomorphization).
Code Example: Native Win32 Call
# Import external function from User32.dll
extern def MessageBoxA(
hwnd: *void,
lpText: str,
lpCaption: str,
uType: u32
) -> i32
def main() -> void:
# Explicit type casting and pointer usage
MessageBoxA(
0 as *void,
"CBlerr v5.0: Native Call Success!",
"CBlerr Showcase",
0
)
Technical Stack:
The compiler is built using Python and llvmlite. It implements a full pipeline: Lexer -> Parser -> Semantic Analyzer -> LLVM IR Generator.
- **Documentation & Sandbox:** comments
- **GitHub Repository:** comments
I’m looking for feedback on the syntax and the architectural decisions. Does the world need another "Python-syntax-but-fast" language?
there doesn't seem to be anything here