๐ FluxSharp Documentation
Welcome to FluxSharp documentation! Here you'll find everything to learn and master the language.
๐ Getting Started
First time? Follow this path:
QUICKSTART โญ - 5-minute introduction (START HERE!)
SYNTAX - Learn the basics
TYPES - Understand data types
Start coding! Use Error Guide if you get stuck
๐ Complete Guide
Core Language (Essentials)
QUICKSTART - Your first program
SYNTAX - Language syntax reference
TYPES - All data types explained
VARIABLES - Variables and constants
OPERATORS - All operators
Functions & Classes (Next Level)
Control Flow & Built-ins
Control Flow - if/else, loops, return
STDLIB - Built-in math and print functions
Async Await - Asynchronous programming
Help & Reference
Error Guide - Understanding errors
Build System - How compilation works
๐ฏ Learn By Task
"I want to..."
Write Hello World โ QUICKSTART Learn the syntax โ SYNTAX โ TYPES Create variables โ VARIABLES Write functions โ FUNCTIONS Use classes โ CLASSES Use arrays โ ARRAYS Understand loops โ Control Flow Use math functions โ STDLIB Fix my errors โ Error Guide
๐ Quick Facts
File Extension:
.fsh
(FluxSharp) Data Types:
int
- 64-bit integer
float
- 32-bit float (use
3.14f
syntax)
double
- 64-bit double
string
- Text
bool
- true/false
byte
- Single byte
long
,
uint
,
ulong
- Other numeric types
Comments:
// single line
/ multi-line /
Key Keywords:
class
- Define a class
public
,
private
- Visibility
return
- Return from function
if
,
else
,
for
,
while
- Control flow
break
,
continue
- Loop control
new
- Create instance
async
,
await
- Async operations
๐ก Quick Examples
Hello World:
class Main {
public void main() {
print("Hello!");
}
}
Variables:
int x = 10;
float f = 3.14f;
string name = "Alice";
Function:
public int add(int a, int b) {
return a + b;
}
Class:
class Calculator {
int value = 0;
public void add(int x) {
value = value + x;
}
}
Loop:
for (int i = 0; i < 10; i = i + 1) {
print(i);
}
Math:
int maxval = max(10, 20);
double root = sqrt(16.0);
๐ Getting Help
Got an error? โ Check Error Guide Don't understand syntax? โ See [SYNTAX]/docs/?page=02-language/SYNTAX How do types work? โ Read [TYPES]/docs/?page=02-language/TYPES Building/compiling issues? โ See Build System
๐ Document Quality
All guides are:
โ Written in clear English
โ Organized by topic
โ Include practical examples
โ Cross-referenced
โ Easy to search
๐ Learning Recommendations
Beginner (30 min):
QUICKSTART.md
TYPES.md
Try simple programs
Intermediate (1-2 hours):
VARIABLES.md
FUNCTIONS.md
CONTROLFLOW.md
Build small programs
Advanced (2+ hours):
CLASSES.md
ARRAYS.md
STDLIB.md
ASYNCAWAIT.md
Create projects
๐ Search by Topic
Topic | Document |
|---|---|
Getting started | QUICKSTART.md |
Grammar & rules | SYNTAX.md |
Data types | TYPES.md |
Variables | VARIABLES.md |
Functions | FUNCTIONS.md |
Classes/OOP | CLASSES.md |
Loops/conditionals | CONTROLFLOW.md |
Operators | OPERATORS.md |
Arrays | ARRAYS.md |
Built-in functions | STDLIB.md |
Async/await | ASYNCAWAIT.md |
Errors explained | ERRORGUIDE.md |
Build process | BUILD_SYSTEM.md |
โจ What's Included
โ Complete language reference โ Beginner-friendly tutorials โ Real code examples โ Error explanations โ Best practices โ Common patterns
๐ Next Steps
Start: Read [QUICKSTART]/docs/?page=01-quickstart/QUICKSTART
Learn: Follow guides in order
Code: Try the examples
Build: Create your own programs
Reference: Come back anytime
Let's code! ๐ Start with [QUICKSTART]/docs/?page=01-quickstart/QUICKSTART โ