Language Reference
Core Language
- Variables & Data Types - Int, String, Double, and type suffixes
- Operators - Arithmetic, comparison, logical, and bitwise operators
- Bitwise Operations Tutorial - In-depth guide to binary, hexadecimal, and bit manipulation
- Control Flow - If/ElseIf/Else, Select/Case, While, Until, For/Next, Forever
- Functions - Declaring and calling functions with parameters and return values
- AutoCall Timers - Run a function on a timer (Every / Once, StopCall)
- Arrays - Single and multi-dimensional arrays
Object-Oriented Features
Collections
- Sequences - General-purpose list containers (SeqAdd, SeqGet, EachSeq)
Advanced Features
- Include - Including other BambooBasic files
- Import - Loading external DLL functions
- Linker - Adding linker flags for static libraries
- Inline C++ - Embedding C++ code with InlineCPP blocks
- Extern Blocks - Forward declarations for external functions
Built-in Functions
- Type Conversion - ToInt(), ToDouble(), ToString(), Chr(), Asc()
- Console I/O - Print, Input, GetKey()
- String Functions - Concatenation and manipulation
- Math Toolkit - Built-in Sin, Cos, Sqrt, Pow, ... (degrees, no runtime needed)
Compile-Time
- PreCalc - Bake lookup tables at build time (no runtime cost)
Example Programs
BambooBasic © 2026 Michael Denathorn