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.cpp 2022-11-13 2.7 kB
AppClass.cpp 2022-11-13 2.7 kB
AppClass.h 2022-11-13 1.9 kB
AppClass.sm 2022-11-13 1.7 kB
Makefile 2022-11-13 3.6 kB
README.txt 2022-11-13 552 Bytes
Totals: 6 Items   13.2 kB 0


                          C++ Example 1


This state machine "recognizes" the string 0*1* (which includes the
empty string).


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

NOTE: Smc.jar must be built and installed.

    $ make checkstring


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

    $ 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 2022-11-13