bugPSPP - Bugs: bug #17422, COMPUTE creates variable only...

 
 

bug #17422: COMPUTE creates variable only after command parsing finished

Submitter:  Ben Pfaff <blp>
Submitted:  Mon 14 Aug 2006 01:27:43 AM UTC
   
 
Category:  Syntax Parser Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  Before 0.6.0
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Dec 2006 06:51:25 AM UTC, comment #1: 

We believe that this problem is fixed in a change recently
checked into the CVS respository.  If you discover that the bug
has not been fixed, please re-open the bug.

Thank you for your help in improving PSPP.

Ben Pfaff <blp>
Group administrator
Mon 14 Aug 2006 01:27:43 AM UTC, original submission:  

The following syntax:

DATA LIST /ITEM 1-3.
COMPUTE SUM=SUM+ITEM.
PRINT /ITEM SUM.
LEAVE SUM
BEGIN DATA.
123
404
555
999
END DATA.

yields this error:

test.pspp:2: error: COMPUTE: Unknown identifier SUM.

because the variable SUM is only created after the COMPUTE command has been fully parsed, but it should succeed.

Ben Pfaff <blp>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by blp (Posted a comment)
  •  

    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
    2006-12-01 blp StatusNone Fixed
        Open/ClosedOpen Closed
    2006-08-14 blp ReleaseNone Before 0.6.0
    2006-08-14 blp Carbon-Copy- Added josephsaintpierre<joseph.saint-pierre@cict.fr>

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code