[Color Computer] Re: [Coco] NT: BASIC educate {CoCo - DECB}

Robert Gault robert.gault at worldnet.att.net
Mon Nov 21 09:24:38 EST 2005


Did you assume USR0(B) can't have any spaces or actually test the 
syntax? In fact a space will not cause any errors and the following runs 
correctly:
10 DEFUSR 0=&HADFB
20 USR 0(B)


Stephen H. Fischer wrote:
> Hi,
> 
> Robert Gault wrote:
> 
>>Stephen H. Fischer wrote:
>>
>>>Hi,
> 
> 
>>>Robert Gault wrote:
>>>There appears to be several keywords that have no space after the
>>>keyword. Is a space allowed?
>>>
>>>Urbane considers DIR0 to be a variable so "DIR0 TO 1' would be a
>>>problem. "DIR 0 TO 1" would be fine.
>>>
>>
>>Most Basic interpreters will require a trailing space only if the
>>commands would be ambiguous. So, DIR#TO# and DIR # TO # would be
>>equivalent. Ambiguity typically will be possible if the first
>>character after a Reserved Word is a letter.
> 
> 
> I am asking the opposite question, is a space allowed.
> 
> The example in the CoCo 3 quick reference guide on page 22:
> 
> 10 A=USR0(B)
> 
> I would like to require this to be written with a space between USR and the 
> zero:
> 
> LINE_LABEL1 A=USR 0(B)
> 
> That just does not seem allowable to me. So that's why I added the keywords 
> USR0,USR1,USR2...USR9 to the keyword table.
> 
> I am looking for any more that are of that form.
> 



More information about the Coco mailing list