[Swift-devel] [Bug 112] New: error reporting in procedure declarations

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Tue Nov 20 11:04:23 CST 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=112

           Summary: error reporting in procedure declarations
           Product: Swift
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SwiftScript language
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: benc at hawaga.org.uk
                CC: swift-devel at ci.uchicago.edu


The below code fragment has poor error reporting in r1471 - the procedure
declaration is invalid because 'stdout' is a keyword and cannot be used as a
variable name. The parser predictor for procedure declarations predicts based
on an entire valid procedure declaration being present, so gives a very poor
error message.

Predictor can be shortened - perhaps to  left-bracket token token

(messagefile stdout, messagefile b) greeting(string m) {
app { 
echo m stdout=@filename(a) stderr=@filename(b);
}
}


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list