[futurebasic] Re: [FB] FBToC constant parsing bug?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2009 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 12 Jun 2009 04:19:33 -0400
On Jun 12, 2009, at 4:08 AM, Robert Covington wrote:

>
> Mr RP,
>
> Noting that constants beginning with a letter followed by a number  
> are fine:
>
> in Fn GetConstant..in Lexical Analysis...
>
> Approximately line 249...insert:
>
> long if (fn IsAlpha( name[1] ) == _False ) // constant starting  
> with number
> long if (name[0] < 255)
> name = "a" + name // Nullify numeric issue behind the scenes.
> xelse
> // do nothing, flag as error I guess
> end if
> end if
>
> // Alter to nullify the additional check if need be here...
> long if ( (name[0] != 0) and fn IsAlpha( name[1] ) )

RP,

Though I think it gets reset on down below after, might need to  
adjust the below part at line'ish 234?

That is, if the pre-pender concept will work. Don't see why it could  
not with a little finesse? :)

C's the day, mon.

:)

xelse
// name not in symbol table
token = _newConstStringToken
sLexemeInfoStash.stringRepresentation = name

rc