Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f1b3710b2911cd682d0bd9de876c42b19b61f738
Ticket: 1749987fffffffffffffffffffffffffffffffff
Tcl_ParseExpr does not return error type or location
User & Date: kennykb on 2007-07-08 18:59:19
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl_ParseExpr, after the recent refactoring, fails to return parsePtr->errorType and parsePtr->term reporting the location and type of the error.  This behaviour causes a panic in the test suite of the 'tclparser' module of TclPro.
    
    While 'tclparser' should be more forgiving - panicking in this case is surely not right (and I'm fixing it) - we should still restore the documented results. The attached patch appears to make TclPro's test suite happy. I haven't developed test cases for Tcl's own test suite yet, partly because the relevant commands in tclTest.c don't appear to report parse.errorType (or indeed, report parse.term in all cases).
    
  4. foundin changed to: "obsolete: 8.5a7"
  5. is_private changed to: "0"
  6. priority changed to: "7 High"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kennykb"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to:
    Tcl_ParseExpr does not return error type or location
    
  12. type changed to: "Bug"