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
README.txt 2021-11-11 402 Bytes
stoplight.m 2021-11-11 2.9 kB
main.m 2021-11-11 2.2 kB
Makefile 2021-11-11 2.6 kB
stoplight.h 2021-11-11 1.3 kB
stoplight.sm 2021-11-11 1.9 kB
stoplightdefs.h 2021-11-11 1.1 kB
Totals: 7 Items   12.6 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.

Unix:
    $ make traffic

Windows Visual C++:
    1. Load ex1.dsw.
    2. Rebuild all.


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

Unix & Windows:

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