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
AppClass.m 2021-11-11 1.7 kB
main.m 2021-11-11 1.6 kB
README.txt 2021-11-11 717 Bytes
AppClass.h 2021-11-11 1.2 kB
AppClass.sm 2021-11-11 1.8 kB
Makefile 2021-11-11 2.8 kB
Totals: 6 Items   9.8 kB 0


                          C++ Example 2


This state machine "recognizes" the string 0*1* (which includes the
empty string). This second example differs from the first in that
it uses default transitions.


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

NOTE: Smc.jar must be built and installed.

Unix:
    $ make checkstring

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


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

Unix & Windows:

    $ checkstring <string>

Try several different strings, such as:

    $ checkstring "" -> acceptable
    $ checkstring 000 -> acceptable
    $ checkstring 00011 -> acceptable
    $ checkstring 111 -> acceptable
    $ checkstring 000111100 -> unacceptable
    $ checkstring 00011a1b10c0 -> unacceptable
Source: README.txt, updated 2021-11-11