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
EX2.sln 2021-01-01 890 Bytes
README.txt 2021-01-01 804 Bytes
AssemblyInfo.cs 2021-01-01 2.4 kB
checkstring.cs 2021-01-01 2.0 kB
EX2.csproj 2021-01-01 4.1 kB
EX2.csproj.user 2021-01-01 2.1 kB
AppClass.cs 2021-01-01 2.9 kB
AppClass.sm 2021-01-01 2.8 kB
Totals: 8 Items   17.9 kB 0


                         C# Example 2


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


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

NOTE: Smc.jar must be built and installed.

Windows:
    (Use Microsoft DevStudio v. 7.0 or later.)


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

Windows:

    $ cd bin/Debug
      OR
    $ cd bin/Release

    $ checkstring <string>

Try several different strings such as:

    $ checkstring ""
      The string "" is acceptable.
    $ checkstring 000
      The string "000" is acceptable.
    $ checkstring 00011
      The string "00011" is acceptable.
    $ checkstring 111
      The string "111" is acceptable.
    $ checkstring 000111100
      The string "000111100" is not acceptable.
    $ checkstring 00011a1b10c0
      The string "00011a1b10c0" is not acceptable.
Source: README.txt, updated 2021-01-01