Original Author Paul Laughton, 2011
Page 52
De Re BASIC!
queue bundle would be removed by the order processing department when it was ready to service a
new order.
There are no special commands in BASIC! for Queue operations. If you want to make a queue, create a
list.
Use List.add to add new elements to the end of the queue.
Use List.get to get the element at the top of the queue and use List.remove to remove that top of queue
element. You should, of course, use List.size before using List.get to ensure that there is a queued
element remaining
Comments
! - Single Line Comment
If the first character in a line is the "!" character, BASIC! considers the entire line a comment and ignores
it. If the "!" appears elsewhere in the line it does not indicate a comment.
Rem - Single Line Comment (legacy)
If the first three characters in a line are "Rem", "REM", or even "rEm", BASIC! considers the entire line a
comment and ignores it. If "Rem" appears elsewhere in the line it does not indicate a comment.
!! - Block Comment
When a line begins with the "!!" characters, all lines that follow are considered comments and are
ignored by BASIC! The Block Comment section ends at the next line that starts with "!!"
% - Middle of Line Comment
If the "%" character appears in a line (except within a quoted string) then rest of the line is a comment.
Expressions
Numeric Expression <nexp>
A numeric expression consists of one or more numeric variables or numeric constants separated by
binary operators and optionally preceded by unary operators. The definition can be stated more
completely using this standard formal notation:
<nexp> := {<numeric variable>|<numeric constant} {<noperator> <nexp>}
The next few sections define all of the terms.