Repository navigation
Releases
Princi v0.2.0
Princi v0.2.0
Princi 0.2.0 is the Windows x86-64 release of the v0.2 language and compiler.
It preserves the v0.1 build workflow and .prnc / .princi source
equivalence, and adds monomorphized generics, bounds, interfaces, traits,
algebraic enums, pattern matching, Result<T, E>, and postfix ? propagation.
Build command
princi build hello.prnc
princi build hello.princi
princi build hello.prnc -o app.exeBoth source extensions are aliases. The first two commands produce
hello.exe; -o selects another executable path.
Language additions
- Generic functions, classes, structs, and enums with nested types, bounded
parameters, local inference where unambiguous, and deterministic
monomorphization. - Class interface values with runtime dispatch. Traits support abstract and
default methods, class and struct implementations, and trait values. - Enum variants with payloads, match patterns and expressions, wildcard arms,
and exhaustiveness diagnostics. - The embedded generic
Result<T, E>enum and?propagation when error types
match exactly.
The full boundaries and limitations are in docs/v0.2-scope.md.
Compiler and native integration coverage is documented in the
v0.2 testing matrix.
Requirements
The compiler installer does not bundle native build tools. Compiling Princi
programs still requires LLVM/Clang 15+ with LLVM IR and X86 support and
x86-64 MinGW-w64 GCC targeting x86_64-w64-mingw32. Both must be available on
PATH, or selected with PRINCI_CLANG and PRINCI_CC. See the root README's
Windows setup.
Princi v0.1.0
Princi v0.1.0
Princi v0.1.0 is the first packaged Windows x86-64 release of the Princi
compiler. The installer places the princi command in the current user's
programs directory and can add it to the user's PATH. It can also add a
Build with Princi Explorer action for .prnc and .princi files without
changing the default application used to edit them.
Requirements
The installer contains the Princi compiler, but does not bundle LLVM or
MinGW-w64. Compiling Princi programs requires:
- LLVM/Clang 15 or newer with LLVM IR input and the X86 target.
- x86-64 MinGW-w64 GCC targeting
x86_64-w64-mingw32.
Both tools must be available on PATH, or configured with PRINCI_CLANG and
PRINCI_CC. See the repository README's Windows setup guide.
Install
Download and run Princi-Setup-0.1.0-x64.exe. Open a new terminal after
installation, then build either source extension:
princi build hello.prnc
princi build hello.princi
princi build hello.prnc -o app.exeThe .prnc and .princi extensions are interchangeable. Both default builds
create an executable next to the source file. Windows may show a SmartScreen
warning for this new, unsigned release.