                         Java Example 1

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

This ant build.xml was provided courtesy of Eitan Suez.


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

NOTE: Smc.jar must be built and installed.

Unix & Windows:
    $ ant


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

Try several different strings, such as:

    $ java -classpath ${CLASSPATH}:../../../lib/statemap.jar:gen/classes checkstring ""
      -> acceptable
    $ java -classpath ${CLASSPATH}:../../../lib/statemap.jar:gen/classes checkstring 000
      -> acceptable
    $ java -classpath ${CLASSPATH}:../../../lib/statemap.jar:gen/classes checkstring 00011
      -> acceptable
    $ java -classpath ${CLASSPATH}:../../../lib/statemap.jar:gen/classes checkstring 111
      -> acceptable
    $ java -classpath ${CLASSPATH}:../../../lib/statemap.jar:gen/classes checkstring 000111100
      -> unacceptable
    $ java -classpath ${CLASSPATH}:../../../lib/statemap.jar:gen/classes checkstring 00011a1b10c0
      -> unacceptable
