[Swift-devel] [Bug 39] a poor syntax error

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Nov 8 14:46:01 CST 2010


https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=39


skenny <skenny at uchicago.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |skenny at uchicago.edu
         Resolution|                            |FIXED




--- Comment #2 from skenny <skenny at uchicago.edu>  2010-11-08 14:46:00 ---
the latest swift reports the next token (after the missing semicolon) as the
unexpected token, which seems appropriate...that is, it does not misinterpret
the > as a greater-than symbol:

[skenny at login2]$ cat 119-missing-semi.swift
type file {};
type student {
  file name;
  file age;
  file gpa;
}
app (file t) getname(string n) {
        echo n stdout=@filename(t);
}

file results <single_file_mapper; file="sinfo.txt">;
student fnames[] <csv_mapper;file="stu_list.txt">
results = getname(@filename(fnames[0]));

[skenny at login2]$ swift 119-missing-semi.swift
Could not compile SwiftScript source: line 13:1: unexpected token: results

a test for this has been added to swift/tests/language/should-not-work

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



More information about the Swift-devel mailing list