[ nice-Bugs-1103449 ] a bug compiler ?
"SourceForge.net" <[email protected]> Sun, 16 Jan 2005 11:11:42 -0800
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1103449, was opened at 2005-01-16 11:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1103449&group_id=12788
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: a bug compiler ?
Initial Comment:
I sent the message. I'm a new user of Nice and I begin
with some little program just after "hello world" .. !
I wrote an input-output function in a programme that
work before.
During th compilation after many mistakes I have an
error message from the compiler who say to send you th
report. I do...
Last version :
c:\nice>nicec --version
Nice compiler version 0.9.9 (build 2004.09.22, 00:40:25
UTC)
Compiled using JDK 1.4.2_04
Copyright (C) 2003 Daniel Bonniot
Visit the Nice homepage: http://nice.sourceforge.net
c:\nice>
c:\nice>nicec -a hello5.jar hello5
nice.lang: parsing
hello5: parsing
An exception has occured in the compiler
Please fill-in a bug report at the following webpage:
http://sourceforge.net/tracker/?
func=add&group_id=12788&atid=112788
Stack trace:
Exception in thread "main"
bossa.parser.Parser$LookaheadSuccess
at bossa.parser.Parser.<init>(Parser.java:8306)
at bossa.parser.JavaccParser.read
(JavaccParser.java:67)
at bossa.modules.Content.read(Content.java:111)
at bossa.modules.Content.getDefinitions
(Content.java:86)
at bossa.modules.Package.read(Package.java:121)
at bossa.modules.Package.<init>(Package.java:87)
at bossa.modules.Package.make(Package.java:58)
at bossa.modules.fun.setMainPackage
(Compilation.nice:89)
at bossa.modules.Compilation.setMainPackage
(Compilation.nice)
at nice.tools.compiler.fun.compile
(interface.nice:38)
at bossa.modules.Compilation.compile
(Compilation.nice)
at nice.tools.compiler.console.fun.compile
(main.nice:165)
at nice.tools.compiler.console.dispatch.compile
(dispatch.nice)
at nice.tools.compiler.console.fun.main
(main.nice:181)
at nice.tools.compiler.console.dispatch.main
(dispatch.nice)
c:\nice>
the program
// Déclaration
String affiche(int[] t);
int[] tribul(int[] tinit);
int[] saisieletableau(int[] tab1);
//Méthodes
saisieletableau(tab1)
{
int i;
InputStreamReader converter = new
InputStreamReader(System.in);
BufferedReader in = new BufferedReader
(converter);
print("Veuillez saisir 5 entiers: ");
for(i=0; i<=5; i++)
{
print("entrez un chiffre puis la touche
entrée ");
?tab1[i] = in.readLine();
}
return tab1;
}
tribul(tinit)
{
int i,j;
println("j i : Etat initial Etat Final");
for(j=tinit.length()-1; j>0 ; j--)
{
for(i=1; i<=j ; i++)
{
print(j+" "+i+":"+ tinit[i-1]);
if (tinit[i-1] > tinit[i-1])
{
int inter = tinit[i-
1];
tinit[i-1] = tinit[i];
tinit[i] = inter;
}
println(" ==>> " +
tinit.affiche());
}
}
return tinit;
}
// Fonctions
affiche(t)
{
//int i;
String res = "[";
for(int elem : t) {res += elem +",";}
res = res.substring(0,res.length()-1) + "]";
return res;
}
// main
void main(String[] args)
{
println("le tri Bulle");
//int[] tab1 = [45,12,79,8,70];
int[] tab1 = new int[5];
// tableau de 5 éléments: entiers
tab1.saisieletableau();
println(tab1.affiche());
tab1.tribul();
println(tab1.affiche());
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1103449&group_id=12788
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt