> However, I think I just found the 
> relevant section in the ANSI standard, which states:
> 
> - EXPONENT_SIGN occurs when the character about to be scanned is '+'
> or '-', and the
> characters to the left of the sign, currently parsed as part 
> of Const_symbol, represent a plain_number followed by 'E' or 
> 'e', and the characters to the right of the sign represent a 
> repetition of digit not followed by a general_letter or '.'.

Yep, pretty sure I remember that discussion at the ANSI meetings .. a deliberate
change from what TRL said .. and probably a good one, because typos break
something earlier.
 
> So, by this definition, the exponent is only recognized as 
> part of the symbol if the token scanned so far is a "plain 
> number" (consisting of at least one digit and at most one 
> ".").  So by the ANSI definition,
> 3ae+6 should NOT be treated as a single token, but rather as two
> tokens with a operator between then.  The error is the 
> correct behavior here, and this truly was a bug fix :-)

Agreed, for ANSI compliance.  (Actually, not sure if ooRexx is intended to be
ANSI-compliant or not .. quick web search is a bit vague on that.) 

Mike



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to