- Bytecode
- Configuration
- Comments
// - Conditions
ifelseend - Constants
truefalseHIGHLOWINPUTOUTPUT - Cycles
forwhilenextbreakcontinue - Functions
functionlocalsreturndone - Macros
macro - Numeric variables
@@[] - Operators
+-*/%==!=>>=<<=&&||&|^>><<++--~not - Strings
::[] - System functions
adc readargscharcursordelayfile closefile openfile readfile writeincludeindexinputio openio readio writememmillisnumbernumericprintrandomrestartserial openserial readserial writesizestopstringsystem - Unary operators
++--
String are identified by :, their name must not start with a number, must be composed by lowercase and or uppercase letters and or the symbol _ and or numbers. Each string is just an entry of a global array of strings. BIPLAN supports up to 87 strings of 2^31 or 2^63 bits length. A string can be declared:
:test = "Hello world!"A string can be accessed by name:
:test = "Hello world!"
print :test // Prints "Hello world!"Strings can be concatenated:
:name = "Fred"
:phrase = "Hi " + :name + "!" // Prints "Hi Fred!"All strings can be accessed by reference using :[]:
:test = "Hello world!"
print :[0] // Prints "Hello world!"Characters of strings can be accessed as shown below:
:test = "Hello world!"
print :test[0] // Prints "H"The reference of a string can be obtained prepending its name with index:
:a_string = "Hello world" // index 0
:b_string = "World" // index 1
:c_string = "Hello" // index 2
print index :c_string // Prints 2 or the index of :c_string