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.cs 2021-11-11 2.9 kB
AssemblyInfo.cs 2021-11-11 2.4 kB
checkstring.cs 2021-11-11 2.1 kB
EX1.csproj 2021-11-11 4.1 kB
EX1.csproj.user 2021-11-11 2.1 kB
EX1.sln 2021-11-11 890 Bytes
README.txt 2021-11-11 804 Bytes
AppClass.sm 2021-11-11 2.1 kB
Totals: 8 Items   17.4 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.

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-11-11