Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
AppClass.vb | 2021-11-11 | 2.4 kB | |
AssemblyInfo.vb | 2021-11-11 | 997 Bytes | |
EX1.sln | 2021-11-11 | 890 Bytes | |
EX1.suo | 2021-11-11 | 17.4 kB | |
EX1.vbproj | 2021-11-11 | 4.3 kB | |
EX1.vbproj.user | 2021-11-11 | 2.1 kB | |
README.txt | 2021-11-11 | 828 Bytes | |
AppClass.sm | 2021-11-11 | 1.6 kB | |
checkstring.vb | 2021-11-11 | 1.8 kB | |
Totals: 9 Items | 32.3 kB | 0 |
VB.net 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: $ 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