From: Marius Amado Alves <maa@liacc.up.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: Hierarchical States Machines
Date: Thu, 29 Apr 2004 16:41:10 +0100
Date: 2004-04-29T16:41:10+01:00 [thread overview]
Message-ID: <mailman.26.1083251962.313.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <k3%jc.11226$lz5.1111351@attbi_s53>
On Thursday 29 April 2004 04:58, Steve wrote:
> I don't have anything against using goto's for state machines... but...
>
> I usually set up an enumeration for each state:
>
> type my_states is ( start_state, initializing, etc, end_state );...
That's how I usually do it too.
See
http://www.liacc.up.pt/~maa/files/Ada_Automaton/
for an Ada tokenizer written this way. Programs Ada_Automaton_Test and
Ada_Counter are example applications of the package. Ada_Counter counts the
significant semicolons in a unit.
prev parent reply other threads:[~2004-04-29 15:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-28 18:48 Hierarchical States Machines Fabien
2004-04-28 19:39 ` Marius Amado Alves
2004-04-28 19:57 ` Robert I. Eachus
2004-04-29 3:00 ` Randy Brukardt
2004-04-29 7:25 ` Martin Krischik
2004-04-29 20:37 ` Randy Brukardt
2004-04-29 12:10 ` Wojtek Narczynski
2004-04-29 3:58 ` Steve
2004-04-29 5:14 ` Robert I. Eachus
2004-04-29 6:36 ` tmoran
2004-04-29 16:36 ` Robert I. Eachus
2004-04-29 15:41 ` Marius Amado Alves [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox