[racket] machine states diagrams
2014-12-02 17:03 GMT+01:00 Jens Axel Søgaard <jensaxel at soegaard.net>:
> Here is an example drawing a simple state machine with MetaPict.
> It shows a little state machine that accepts numbers with
> an even number of zeros in its binary representation.
>
> #lang racket
> (require metapict metapict/structs)
>
> ; Two states S1 and S2.
>
> ; Four arrows (here A1, A2, A3, A4)
> ; A1: S1 -- 0 --> S2
> ; A2: S2 -- 0 --> S1
> ; A3: S1 -- 1 --> S1
> ; A4: S2 -- 1 --> S2
>
>
Nothing happens. It returns a prompt but no window shows up
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150126/8346a711/attachment.html>