Dnia poniedziaÅek, 11 paÅdziernika 2004 20:01, Amrit Kohli napisaÅ:
> Hello,
>
>
>
> I am new to the mono development platform.  I found an article that
> illustrates how to write a simple "hello world" type of program in C#.
> However, on my system (a windows 2000 box), the simple program does not
> compile.  Here is what the simple program looks like:
>
>
>
> using System;
>
>
>
> namespace HelloNameSpace
>
> {
>
>       public class Hello
>
>       }
>

There is a typo, it should be  '{' instead of "}", since you are opening scope 
of Hello class

>             static void Main(string[] args)
>
>             {
>
>                   Console.WriteLine("What we think, we become.");
>
>             }
>
>       }
>
> }
>
>
>
> The compiler gives me the following error message:
>
>
>
> syntax error, got token `CLOSE_BRACE', expecting OPEN_BRACE COLON
>
> hello.cs(6) error CS8025: Parsing error
>
> Compilation failed: 1 error(s), 0 warnings

The error message gives you info what is wrong and in which line.

BTW. maybe jay output should be more versbose, like
syntax error, got token `}', expecting `{' or `:'

-- 
Kamil Skalski
http://nemerle.org developer
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to