Download Latest Version smc-maven-plugin-7.6.0.jar (25.9 kB)
Email in envelope

Get an email when there's a new version of SMC - The State Machine Compiler

Name Modified Size InfoDownloads / Week
Parent folder
stoplightdefs.h 2021-01-01 1.5 kB
README.txt 2021-01-01 317 Bytes
stoplight.cpp 2021-01-01 4.2 kB
stoplight.h 2021-01-01 4.4 kB
stoplight.sm 2021-01-01 2.3 kB
Main.cpp 2021-01-01 4.2 kB
Makefile 2021-01-01 3.3 kB
Totals: 7 Items   20.2 kB 0


                          C++ Example 4


Simplistic, non-graphical simulation of a stoplight. Demonstrates
how to use state machines to handle external events (in this case
timeouts).


+ Building
----------

NOTE: Smc.jar must be built and installed.

    $ make traffic


+ Executing
-----------

    $ traffic
Source: README.txt, updated 2021-01-01