| Author |
Message |
victorf
Joined: 01 Jan 2006
Location: Schenectady, New York
|
|
Posted: 09 February 2006, 13:32 PM Post subject: is STOP a system command? |
|
|
I was defining STOP as Public Const STOP as byte = 0 when I noticed that when I typed STOP it turned blue I then found STOP in the list of reserved words. What does it do. Is it like the "old" basic keyword that halts execution or has it been reserved for "Future Use"?
Any enlightenment will be appreciated.
Vic |
|
| Back to top |
|
 |
victorf
Joined: 01 Jan 2006
Location: Schenectady, New York
|
|
Posted: 09 February 2006, 13:34 PM Post subject: |
|
|
How about End
Vic |
|
| Back to top |
|
 |
mikep
Joined: 24 Sep 2005
Location: Austin, TX
|
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 09 February 2006, 16:40 PM Post subject: |
|
|
Stop is a keyword for historical reasons but it has no function in ZBasic. End is only used as part of End If, End Select, etc.
The list of words that the IDE highlights as keywords is separate from the list that the compiler considers reserved words. Although they generally will be the same, they need not be.
You can change the list of keywords that are highlighted in the IDE by modifying the keywordclass.bas entry. Although the original list is in the bas.properties file, it is best to effect changes by adding an entry to your User Options file. The entry below has been edited down to include only the keywords that have a role in ZBasic.
| Code: | keywordclass.bas=alias and array as based bit boolean boundedstring \
byref byte bytetabledata bytetabledatarw bytevectordata bytevectordatarw byval \
call calltask case console.write console.writeline const debug.print do \
else elseif end enum exit for function goto if integer integertabledata integertabledatarw \
integervectordata integervectordatarw is long longtabledata \
longtabledatarw longvectordata longvectordatarw loop module \
new next nibble not option or persistentboolean persistentbyte persistentinteger \
persistentlong persistentsingle persistentstring private public \
register resume return select set single singletabledata \
singletabledatarw singlevectordata singlevectordatarw static step string \
stringtabledata stringvectordata sub then to unsignedinteger \
unsignedlong until volatile wend while with xor |
|
|
| Back to top |
|
 |
|