[Swift-devel] [Bug 173] New: poor syntax error missing close parentheses at end of procedure invocation

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Tue Feb 3 05:24:30 CST 2009


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

           Summary: poor syntax error missing close parentheses at end of
                    procedure invocation
           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


The below fragment is missing ) at the end of the trace invocation. The antlr
generated parser fails to parse this, giving the confusing message below. It
would be better if the error was more related to the missing )

$ cat rw.swift

type file;

file s <"muppet.gif">;

trace(@regexp(@filename(s),"gif","jpg");

$ swift rw.swift 
Could not compile SwiftScript source: line 6:1: unexpected token: trace


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
You are the assignee for the bug, or are watching the assignee.



More information about the Swift-devel mailing list