samek

command
v0.0.0-...-69341d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 8 Imported by: 0

README

Samek example FSM

This FSM implementation follows the TestFSM documented here.

The state diagram can be seen below. state diagram.

Given the implementation, the specified input should yield the following results:

->S0;->S1;->S11;
Enter text: (type a)
<-S11;<-S1;
EventA;
->S1;->S11;
Enter text: (type e)
<-S11;<-S1;<-S0;
EventE
->S0;->S2;->S21;->S211;
Enter text: (type e)
<-S211;<-S21;<-S2;<-S0;
EventE
->S0;->S2;->S21;->S211;
Enter text: (type a)

Enter text: (type h)
<-S211;<-S21;
EventH
->S21;->S211;

Signal<-h
Signal<-x

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL