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
main.c 2020-12-31 2.1 kB
Makefile 2020-12-31 2.7 kB
README.txt 2020-12-31 356 Bytes
stoplight.c 2020-12-31 3.6 kB
stoplight.h 2020-12-31 2.2 kB
stoplight.sm 2020-12-31 2.0 kB
Totals: 6 Items   13.0 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 & Windows (MinGW):
    $ make traffic


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

Unix & Windows:

    $ traffic
Source: README.txt, updated 2020-12-31