๐Ÿ“š FluxSharp Documentation

Welcome to FluxSharp documentation! Here you'll find everything to learn and master the language.

๐Ÿš€ Getting Started

First time? Follow this path:

  1. QUICKSTART โญ - 5-minute introduction (START HERE!)

  2. SYNTAX - Learn the basics

  3. TYPES - Understand data types

  4. Start coding! Use Error Guide if you get stuck

๐Ÿ“– Complete Guide

Core Language (Essentials)

Functions & Classes (Next Level)

Control Flow & Built-ins

Help & Reference

๐ŸŽฏ 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):

  1. QUICKSTART.md

  2. TYPES.md

  3. Try simple programs

Intermediate (1-2 hours):

  1. VARIABLES.md

  2. FUNCTIONS.md

  3. CONTROLFLOW.md

  4. Build small programs

Advanced (2+ hours):

  1. CLASSES.md

  2. ARRAYS.md

  3. STDLIB.md

  4. ASYNCAWAIT.md

  5. 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

  1. Start: Read [QUICKSTART]/docs/?page=01-quickstart/QUICKSTART

  2. Learn: Follow guides in order

  3. Code: Try the examples

  4. Build: Create your own programs

  5. Reference: Come back anytime


Let's code! ๐ŸŽ‰ Start with [QUICKSTART]/docs/?page=01-quickstart/QUICKSTART โ†’