| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| AssemblyInfo.vb | 2023-02-20 | 997 Bytes | |
| EX1.suo | 2023-02-20 | 17.4 kB | |
| AppClass.vb | 2023-02-20 | 2.4 kB | |
| checkstring.vb | 2023-02-20 | 1.8 kB | |
| EX1.sln | 2023-02-20 | 890 Bytes | |
| EX1.vbproj | 2023-02-20 | 4.3 kB | |
| EX1.vbproj.user | 2023-02-20 | 2.1 kB | |
| README.txt | 2023-02-20 | 828 Bytes | |
| AppClass.sm | 2023-02-20 | 1.6 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