Contents
About struixLang__________________________________________________________________________________________1
Use Cases __________________________________________________________________________________________________2
Usage_______________________________________________________________________________________________________3
Data Model ________________________________________________________________________________________________4
List of Primitive Words in this Implementation ________________________________________________________5
struixLang 101 ____________________________________________________________________________________________7
Execution Process _________________________________________________________________________________________________7
Syntax and Other Stuff ____________________________________________________________________________________________7
Basics of struixLang ______________________________________________________________________________________8
Input and Output __________________________________________________________________________________________________8
Variables and Constants _________________________________________________________________________________________10
Mathematical Operations________________________________________________________________________________________11
Mathematical Operators: _____________________________________________________________________________________12
Stack Operations _________________________________________________________________________________________________13
DUP – Duplicate ToS __________________________________________________________________________________________13
DROP – Remove ToS __________________________________________________________________________________________13
SWAP – Swap ToS and 2oS ___________________________________________________________________________________13
OVER – Copy 20S on top of ToS ______________________________________________________________________________14
ROT – Move 3oS on top of ToS _______________________________________________________________________________14
Comments ________________________________________________________________________________________________________14
List ________________________________________________________________________________________________________________15
Nested Lists____________________________________________________________________________________________________15
LEN or LENGTH – Find length of List________________________________________________________________________15
ITEM – To access an element from the List _________________________________________________________________15
Executable Lists _______________________________________________________________________________________________16
Conditional Statements__________________________________________________________________________________________17
IFTRUE_________________________________________________________________________________________________________17
IFFALSE ________________________________________________________________________________________________________17