
A revolutionary programming language designed with a focus on AI, GUI, and cross-platform development.
Built with the robustness of Rust for high performance, reliability, and ease of maintenance.
Development Phase 🚧 Early Development |
Core Compiler ✅ Live & Functional |
Interpreter 🧪 Experimental |
Note: While Nukleus is still in its early stages, our team is devoted to bringing an array of exciting features to life. Stay tuned for the journey ahead!
The current compiler supports essential programming constructs:
Feature | Status | Description |
---|---|---|
Recursive Functions | ✅ | Functions can call themselves for complex computations |
Operator Precedence | ✅ | Mathematical expressions follow standard evaluation order |
Control Structures | ✅ | if/else conditionals and for loops |
Strong Typing | ✅ | Type safety and reliability built-in |
- Console Output: No direct print/output functionality yet
- Limited Scope: Optimized for specific sample programs like
Fibonacci.nk
The experimental interpreter offers broader code execution capabilities, showcasing the language's full potential.
Here's a sample Fibonacci implementation in Nukleus:
fn fibonacci(i64:n) -> i64 {
let:i64 return_val = 0;
if(n < 2) {
return_val = n;
} else {
return_val = fibonacci( n-1 ) + fibonacci( n-2 );
}
return return_val;
}
fn main() -> i64 {
let:i64 x = 47;
return fibonacci(x);
}
- Intuitive Syntax - Clean, modern language design
- Strong Typing - Enhanced reliability and maintainability
- Rich Standard Library - Comprehensive built-in functionality
- Rust Integration - Expandability with Rust ecosystem
- Cross-Platform - Run anywhere
- Rust-Powered Performance - Maximum efficiency and speed
- Memory Safety - Rust's safety guarantees
- Integrated GUI Toolkit - Native cross-platform interfaces
- Comprehensive AI Toolkit - Built-in machine learning capabilities
- Documentation System - User-centric docs with practical examples
- Rust toolchain (for building from source)
- Git for cloning the repository
-
Clone the Repository
git clone https://github.com/Nukleus-Language/nukleus.git cd nukleus
-
🔨 Build the Project
cargo build --release
-
** Run Sample Programs**
# Try the Fibonacci example ./target/release/nukleus examples/Fibonacci.nk
-
** Write Your First Program**
- Create a new
.nk
file - Use the sample programs as reference
- Experiment and modify existing examples
- Create a new
- Explore the
examples/
directory for more sample programs - Check out our documentation (coming soon)
- Join our community discussions
- Contribute to the project development
Ready to explore the future of programming?
Star ⭐ this repository to stay updated with our progress!