[Mono-list] hello.cs

Kamil Skalski nazgul@nemerle.org
Mon, 11 Oct 2004 20:08:08 +0200


Dnia poniedzia=C5=82ek, 11 pa=C5=BAdziernika 2004 20:01, Amrit Kohli napisa=
=C5=82:
> 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 sc=
ope=20
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 `:'

=2D-=20
Kamil Skalski
http://nemerle.org developer