- Bytecode
- Configuration
- Comments
#
- Conditions
if
else
end
- Constants
true
false
HIGH
LOW
INPUT
OUTPUT
- Cycles
for
while
next
break
continue
- Functions
function
locals
return
- Macros
macro
- Numeric variables
@
@[]
- Operators
+
-
*
/
%
==
!=
>
>=
<
<=
&&
||
&
|
^
>>
<<
++
--
~
not
- Strings
:
:[]
- System functions
adc read
args
char
cursor
delay
file close
file open
file read
file write
include
index
input
io open
io read
io write
jump
label
mem
millis
number
numeric
print
random
restart
serial open
serial read
serial write
size
stop
string
system
- Unary operators
++
--
BIPLAN supports only prefix increment and decrement unary operators. Prefix unary operators are used to increment or decrement its operand. The increment operator ++
adds 1, the decrement operator --
subtracts 1. Both ++
and --
can be used as prefix operators (before the operand: ++v
). For example ++v
increments the value of v
before it is used.
Prefix unary operators in statement must be used only when incrementing or decrementing variables:
@a = 0
print ++@a // Prints "1" and sets a = 1 in memory
BIPLAN unary operators can be chained:
@a = 0
print ++++@a // Sets a = 2 in memory and prints "2"
@a = 1
print ----@a // Sets a = -1 in memory and prints "-1"