Negative constant error

Questions about the BASICtools and MakeItC
Post Reply
basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Negative constant error

Post by basicchip »

>reported from a user

const NEG1=-1
ERROR 3: Expected End Of Line, found -1

Yes the compiler needs to handle this, and will soon (leaving for vacation this weekend)

Work around for now

const NEG1 = &HFFFFFFFF

or

#define NEG1 -1 ' I use #defines myself for these types of things, const chews up symbol table space



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: Negative constant error

Post by basicchip »

The compiler is a recursive decent type, which means we have to think about all the possibilities during parsing. We had not thought of the negative type

CONST name = -number

That is fixed now, runs all our compiler tests, but won't get into the official release until I get back

compiler updates moved to this thread
http://www.coridiumcorp.com/forum/viewt ... ?f=9&t=158

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: Negative constant error

Post by olzeke51 »

you already have a 934g

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: Negative constant error

Post by olzeke51 »

Version name conflict - windows date time and also size are different
wil the real ARMBasic.exe please stand up

Post Reply