<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2014-12-02 17:03 GMT+01:00 Jens Axel Søgaard <span dir="ltr"><<a href="mailto:jensaxel@soegaard.net" target="_blank">jensaxel@soegaard.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is an example drawing a simple state machine with MetaPict.<br>
It shows a little state machine that accepts numbers with<br>
an even number of zeros in its binary representation.<br>
<br>
#lang racket<br>
(require metapict metapict/structs)<br>
<br>
; Two states S1 and S2.<br>
<br>
; Four arrows (here A1, A2, A3, A4)<br>
; A1: S1 -- 0 --> S2<br>
; A2: S2 -- 0 --> S1<br>
; A3: S1 -- 1 --> S1<br>
; A4: S2 -- 1 --> S2<br>
<br></blockquote><div><br></div><div>Nothing happens. It returns a prompt but no window shows up<br></div></div></div></div>