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
README.txt 2022-11-13 697 Bytes
AppClass.php 2022-11-13 2.1 kB
AppClass.sm 2022-11-13 1.6 kB
checkstring.php 2022-11-13 1.5 kB
Makefile 2022-11-13 2.2 kB
Totals: 5 Items   8.0 kB 0


                          PHP 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:
    $ make checkstring


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

Unix & Windows

    $ php -q checkstring.php <string>

Try several different strings, such as:

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