bugPSPP - Bugs: bug #18923, Nary functions should accept TO...

 
 

bug #18923: Nary functions should accept TO keyword

Submitted by:  John Darrington <jmd>
Submitted on:  Thu 01 Feb 2007 04:08:27 AM UTC  
 
Category: Syntax ParserSeverity: 3 - Ordinary
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: None
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 01 Feb 2007 12:51:37 PM UTC, comment #2:

You're right. I was using lower case.

John Darrington <jmd>
Project Administrator
Thu 01 Feb 2007 05:40:18 AM UTC, comment #1:

I suspect that your actual test program had "TO" in lowercase.

If so, the attached patch fixes the problem.

Yes, lex_look_ahead is completely bogus and in the long term we should replace it by something better.

Here is my test program. Without the patch, it is accepted only if "TO" is uppercase. With the patch, it is accepted regardless of case.

data list /x 1.
begin data.
1
end data.
vector v(5).
compute s=sum(v1 to v5).

(file #11900)

Ben Pfaff <blp>
Project Administrator
Thu 01 Feb 2007 04:08:27 AM UTC, original submission:

Given a vector like

VECTOR v(5).

it should be possible to use constructs like

COMPUTE s = sum (v1 TO v5).

but pspp currently rejects such syntax.

John Darrington <jmd>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #11900:  nary.patch added by blp (735B - text/x-patch - fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by blp (Updated the item)
  • -unavailable- added by jmd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Feb 2007 03:01:58 PM UTCblpStatusReady for Test/Review=>Fixed
      Open/ClosedOpen=>Closed
    Thu 01 Feb 2007 05:40:18 AM UTCblpAttached File-=>Added nary.patch, #11900
      StatusNone=>Ready for Test/Review

    Back to the top


    Powered by Savane 3.1-cleanup1