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

 
 

bug #18923: Nary functions should accept TO keyword

Submitter:  John Darrington <jmd>
Submitted:  Thu 01 Feb 2007 04:08:27 AM UTC
   
 
Category:  Syntax Parser Severity:  3 - Ordinary
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

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

You're right.  I was using lower case.

John Darrington <jmd>
Group 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>
Group 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>
Group administrator

 

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

Attach Files:
   
   
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
  • -email is unavailable- added by blp (Updated the item)
  • -email is unavailable- added by jmd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-02-01 blp StatusReady for Test/Review Fixed
        Open/ClosedOpen Closed
    2007-02-01 blp Attached File- Added nary.patch, #11900
        StatusNone Ready for Test/Review

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code