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.sm 2020-12-31 1.8 kB
main.c 2020-12-31 1.8 kB
Makefile 2020-12-31 2.9 kB
README.txt 2020-12-31 591 Bytes
AppClass.c 2020-12-31 2.3 kB
AppClass.h 2020-12-31 1.8 kB
Totals: 6 Items   11.1 kB 1


                          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.

Unix & Windows (MinGW):
    $ make checkstring


+ 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 2020-12-31