[ nice-Bugs-887976 ] unhelpful error message
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #887976, was opened at 2004-01-31 02:55
Message generated for change (Comment added) made by arjanb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=887976&group_id=12788
Category: None
Group: None
>Status: Closed
>Resolution: Postponed
Priority: 5
Submitted By: Isaac Gouy (igouy)
>Assigned to: Arjan Boeijink (arjanb)
Summary: unhelpful error message
Initial Comment:
It was quite difficult figuring out that there simply isn't a
switch statement.
\Nice\Test\..\test\test.nice: line 6, column 16:
Encountered "1".
Was expecting one of:
"(" ...
"[" ...
"." ...
"=" ...
<assignmentOperator> ...
"++" ...
"--" ...
"[]" ...
":" ...
"<" ...
"[?]" ...
"?" ...
"->" ...
<IDENT> ...
void main(String[] args){
int j = 0;
char i = 3;
switch(i){
case 1:
j = i;
break;
case 2:
j = i;
break;
case 3:
j = i;
break;
default:
j = i;
break;
}
}
Nice compiler version 0.9.6 prerelease (build 2004.01.30,
19:05:54 UTC)
----------------------------------------------------------------------
>Comment By: Arjan Boeijink (arjanb)
Date: 2004-02-03 12:42
Message:
Logged In: YES
user_id=688815
Made switch a keyword:
Encountered "switch".
Was expecting one of:
"(" ...
"[" ...
"{" ...
"}" ...
"?" ...
"!" ...
"assert" ...
"for" ...
"if" ...
"while" ...
"do" ...
"true" ...
"false" ...
"alike" ...
"super" ...
"synchronized" ...
"new" ...
"null" ...
"break" ...
"continue" ...
"return" ...
"var" ...
"let" ...
"throw" ...
"try" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<CHARACTER_LITERAL> ...
<MULTILINESTRING> ...
<LSTRING> ...
<BACKQUOTEDSTRING> ...
<IDENT> ...
"[]" ...
"++" ...
"--" ...
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-02-01 22:40
Message:
Logged In: YES
user_id=88952
I suppose many people might be running into this one. How
about making "switch" a keyword and addind a specific error
message when it is used?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=887976&group_id=12788
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn