comp.lang.ada
 help / color / mirror / Atom feed
From: "Vinzent Hoefler" <nntp-2010-10@t-domaingrabbing.de>
Subject: Re: Wrong program structure
Date: Sat, 23 Oct 2010 23:16:20 +0200
Date: 2010-10-23T23:16:20+02:00	[thread overview]
Message-ID: <op.vk1r1ibd0k3wt7@jellix.jlfencey.com> (raw)
In-Reply-To: 8ih16gF70rU2@mid.individual.net

On Sat, 23 Oct 2010 23:08:32 +0200, George <mail2george@gmx-topmail.de> wrote:

> GNAT is complaining about "begin" being used as identifier and a missing
> "begin" for procedure "keywords4". The progam structure is like this:
>
[...]
> begin
> -- Ada.Command_Line.Argument_Count is "0" if
> -- a) Command_Line.Argument_Count is not implemented (Compiler, OS)
> -- b) no arguments given
> if Ada.Command_Line.Argument_Count > 0 then
>    for counter in 1..Ada.Command_Line.Argument_Count loop
>       declare
>       Arg : constant String := Ada.Characters.Handling.To_Upper
> (Ada.Command_Line.Argument(counter));

begin

>      -- some commands

end;

>    end loop;
> else -- if Argument_Count = 0 print help
>    -- some commands
> end if;
> end keywords4;

You are declaring a block, but its "end" is missing.


Vinzent.

-- 
There is no signature.



  reply	other threads:[~2010-10-23 21:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-23 21:08 Wrong program structure George
2010-10-23 21:16 ` Vinzent Hoefler [this message]
2010-10-23 21:24   ` George
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox