Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
AppClass.vb | 2021-11-11 | 2.4 kB | |
AssemblyInfo.vb | 2021-11-11 | 997 Bytes | |
EX2.suo | 2021-11-11 | 13.8 kB | |
EX2.vbproj | 2021-11-11 | 4.3 kB | |
EX2.vbproj.user | 2021-11-11 | 2.1 kB | |
README.txt | 2021-11-11 | 905 Bytes | |
AppClass.sm | 2021-11-11 | 2.1 kB | |
checkstring.vb | 2021-11-11 | 1.8 kB | |
EX2.sln | 2021-11-11 | 890 Bytes | |
Totals: 9 Items | 29.3 kB | 0 |
VB.net Example 2 This state machine "recognizes" the string 0*1* (which includes the empty string). Example 2 differs from example 1 in that example 2 uses default transitions. + Building ---------- NOTE: Smc.jar must be built and installed. Windows: $ java -jar ../../../bin/Smc.jar -vb AppClass.sm Load EX1.sln into Microsoft Visual Studio.Net. You will have to add the fully qualified path to smc/lib/statemap.dll before building. + Executing ----------- $ checkstring.exe <string> Try several different strings, such as: $ checkstring.exe "" -> acceptable $ checkstring.exe 000 -> acceptable $ checkstring.exe 00011 -> acceptable $ checkstring.exe 111 -> acceptable $ checkstring.exe 000111100 -> unacceptable $ checkstring.exe 00011a1b10c0 -> unacceptable