Original Author Paul Laughton, 2011
Page 3
De Re BASIC!
<statement> ............................................................................................................................................ 37
Optional Parameters ............................................................................................................................... 37
Numbers ...................................................................................................................................................... 37
Strings ......................................................................................................................................................... 38
Variables ..................................................................................................................................................... 38
Variable Names ....................................................................................................................................... 38
Variable Types ......................................................................................................................................... 39
Scalar and Array Variables ...................................................................................................................... 39
Scalars ..................................................................................................................................................... 39
Arrays ...................................................................................................................................................... 39
Array Segments ................................................................................................................................... 40
Array Commands................................................................................................................................. 40
Data Structures and Pointers in BASIC! ...................................................................................................... 43
What is a Pointer ..................................................................................................................................... 43
Lists ......................................................................................................................................................... 45
List Commands .................................................................................................................................... 45
Bundles.................................................................................................................................................... 47
Bundle Auto-Create ............................................................................................................................ 48
Bundle Commands .............................................................................................................................. 48
Stacks ...................................................................................................................................................... 50
Stack Commands ................................................................................................................................. 51
Queues .................................................................................................................................................... 51
Comments ................................................................................................................................................... 52
! - Single Line Comment .......................................................................................................................... 52
Rem - Single Line Comment (legacy)....................................................................................................... 52
!! - Block Comment ................................................................................................................................. 52
% - Middle of Line Comment .................................................................................................................. 52
Expressions.................................................................................................................................................. 52
Numeric Expression <nexp> .................................................................................................................... 52
Numeric Operators <noperator> ........................................................................................................ 53
Numeric Expression Examples ............................................................................................................ 53
Pre- and Post-Increment Operators .................................................................................................... 53