Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
checkstring.pl | 2021-11-11 | 1.7 kB | |
Makefile | 2021-11-11 | 2.7 kB | |
README.txt | 2021-11-11 | 682 Bytes | |
AppClass.pm | 2021-11-11 | 2.1 kB | |
AppClass.sm | 2021-11-11 | 1.6 kB | |
Totals: 5 Items | 8.8 kB | 0 |
Perl 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 $ perl checkstring.pl <string> Try several different strings, such as: $ perl checkstring.pl "" -> acceptable $ perl checkstring.pl 000 -> acceptable $ perl checkstring.pl 00011 -> acceptable $ perl checkstring.pl 111 -> acceptable $ perl checkstring.pl 000111100 -> unacceptable $ perl checkstring.pl 00011a1b10c0 -> unacceptable