Oxygen Basic

Programming => Problems & Solutions => Topic started by: Charles Pegge on September 20, 2011, 02:59:14 AM

Title: Colon Labels
Post by: Charles Pegge on September 20, 2011, 02:59:14 AM
Hi Peter,

I am still working on the colon labels dilemma. I think the best solution is to ensure that colon labels are on a line which does not contain other statements. Then the compiler can assume that if there is a colon and another statement follows it on the same line then it is not a label.

In some assembly coding styles the label is placed on the same line as a instruction. We will have to exclude this possibility with colon labels but Oxygen will still allow you to do this with dot labels.

abc:    mov eax,1

.abc    mov eax,1

With these rules, Oxygen will not be sensitive to commands and procedures immediately followed by colons.

WinEnd: ExitProcess 0

I think this the best compromise, and I hope works in your favour Peter :)

Charles


Title: Re: Colon Labels
Post by: Peter on September 20, 2011, 05:46:57 AM
Charles,

must be there a space after the point?   . abc or .abc
Title: Re: Colon Labels
Post by: Charles Pegge on September 20, 2011, 06:29:54 AM
.abc
It's all one word Peter,  as in most Assemblers.