Browser-based FluxSharp IDE with WebAssembly Compiler
โจ Features
- ๐จ Code Compilation - Compile to x86-64 Assembly in real-time
- ๐ค Print Output - Capture and display output from print() calls
- ๐งฎ Expression Evaluation - NEW: Evaluate method calls and arithmetic (v1.2.0)
- ๐ก Code Examples - Built-in examples to get started
- โ
Error Handling - Real-time validation and error messages
๐ Getting Started
1. Write your FluxSharp code in the left panel
2. Click "Compile & Run" or press Ctrl+Enter
3. See ASM in the middle panel and output on the right
๐ Example 1: Hello World
class Main {
public void main() {
print("Hello, FluxSharp!");
}
}
Output: Hello, FluxSharp!
๐ Example 2: Method Call with Expression Evaluation (NEW v1.2.0)
class Calculator {
public int add(int a, int b) {
return a + b;
}
}
class Main {
public void main() {
Calculator c = new Calculator();
print("5 + 3 = ");
print(c.add(5, 3)); // โ Displays: 8
}
}
Output: 5 + 3 =
8
๐งฎ Supported Operations
- Method calls: print(c.add(5, 3)) โ 8
- Addition: print(10 + 5) โ 15
- Subtraction: print(20 - 3) โ 17
- Multiplication: print(4 * 6) โ 24
- Division: print(20 / 4) โ 5
- String literals: print("text") โ text
๐ง For Local Development
# 1. Build WASM compiler
cd flux_compiler/fluxc
wasm-pack build --target web --release
# 2. Run local server
cd ../..
php -S localhost:8000
# 3. Open in browser
http://localhost:8000/playground-advanced.php
๐ Documentation
- ๐ UPDATE_v1.2.0.md - Release notes with all features
- ๐งฎ EXPRESSION_EVALUATION.md - Expression evaluation guide
- ๐ง DEPLOYMENT_CHECKLIST_v1.1.0.sh - Deployment instructions
โน๏ธ Online Playground: Runs entirely in WebAssembly. No server-side compilation needed!
โ
FluxSharp Compiler v1.0.3: Stable release with expression evaluation, print output, ASM generation