
GeoB
ASIC
Reference Manual
Appendix A — GeoBasic Syntax
A-2 TPS1100-Version
1.30
| "
(
" Expression "
)
" )
StatementSequence ::=
{ [ ErrorLabel ] Statement }
ErrorLabel
::=
HandlerLabel "
:
"
Statement
::=
( SequentialStatement |
SelectionStatement |
LoopStatement |
OnErrorStatement |
ExitStatement |
IOStatement )
SequentialStatement ::=
( Assignment | SubroutineCall )
Assignment
::=
Variable "
=
" Expression
SelectionStatement ::=
( IfStatement | SelectStatement )
IfStatement ::=
"
IF
" Condition "
THEN
"
StatementSequence
{ "
ELSEIF
" Condition "
THEN
"
StatementSequence }
[ "
ELSE
"
StatementSequence ]
"
END IF
"
Condition ::=
LogicalExpression
SelectStatement ::= "
SELECT CASE
" Expression
{ "
CASE
" ConstantList
StatementSequence }
[ "
CASE ELSE
"
StatementSequence ]
"
END SELECT
"
ConstantList
::=
Constant { "
,
" Constant }
LoopStatement ::=
( WhileLoop | UntilLoop | ForLoop )
WhileLoop ::=
"
DO
" [ "
WHILE
" Condition ]
StatementSequence
"
LOOP
"
UntilLoop ::=
"
DO
"
StatementSequence
"
LOOP
" [ "
UNTIL
" Condition ]
ForLoop ::=
"
FOR
" CounterName "
=
" Start "
TO
"
Finish [ "
STEP
" Step ]
StatementSequence
"
NEXT
" [ CounterName ]
Condition ::=
LogicalExpression
Start ::=
IntegerExpression
Summary of Contents for tps1100
Page 620: ...TPS1100 Version 2 10 6 1 ...
Page 621: ......
Page 623: ...TPS1100 Version 2 10 6 1 ...
Page 624: ......
Page 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...