From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5ea22870217a3d5a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.86.133 with SMTP id p5mr1609152paz.23.1361144917201; Sun, 17 Feb 2013 15:48:37 -0800 (PST) Path: ov8ni6754pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!backlog2.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.meeh.mikalv.net!gandalf.srv.welterde.de!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: References on encoding (Hierarchical) State Machines / Automata in Ada? Date: Thu, 14 Feb 2013 09:34:17 +0100 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1631 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-02-14T09:34:17+01:00 List-Id: On Wed, 13 Feb 2013 22:28:40 +0000, Simon Wright wrote: > I can understand that if the FSM is a task - you're implementing the > states in terms of the program counter, nothing wrong with goto for > that. But if you've inverted this, so that the FSM is a passive > construct, you're going to need an enumeration of the possible states, True. This is how you switch from imperative to even/data-driven paradigm. Unfortunately there is no support for co-routines in Ada to avoid the latter [which is so bad, that some would resort to gotos (:-))]. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de