Re: [cc65] "--feature labels_without_colons" not always working with 2.11.0?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-11-15 18:27:25
Hi!

On Tue, Nov 15, 2005 at 12:02:00PM +0100, Spiro Trikaliotis wrote:
> To me, it seems that HadWS is not correctly reset if an include file is
> opened.

That sounds reasonable, since I have changed token handling for include files
to fix a problem with the listing file.

> 1. remove HadWS completely from main.c; this way, you can define labels
>    without colons even after spaces or tabs;
>    (Is there a reason why a label without colon is not allowed after a
>    whitespace?)

Yes, there's a reason. Without HadWS, there's no way to distinguish between
opcodes, macros and labels. This is also difficult for the reader.

        foo     lda,y
        bar     lda,y
        baz     foo

Each one of "foo", "bar" and "baz" can be a macro or a label (if
labels_without_colons is in effect).

> 2. make HadWS more global to be able to update it accordingly when a
>    file is included;
> 3. when a file is included, let the scanner generate a "CR" by itself.

I will have to check which of these is the better solution. Thanks for looking
at the problem!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Nov 15 18:27:37 2005

This archive was generated by hypermail 2.1.8 : 2005-11-15 18:27:40 CET