| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| AppClass.vb | 2023-02-20 | 3.9 kB | |
| AssemblyInfo.vb | 2023-02-20 | 997 Bytes | |
| EX3.sln | 2023-02-20 | 890 Bytes | |
| EX3.suo | 2023-02-20 | 13.8 kB | |
| README.txt | 2023-02-20 | 959 Bytes | |
| EX3.vbproj | 2023-02-20 | 4.3 kB | |
| AppClass.sm | 2023-02-20 | 3.1 kB | |
| checkstring.vb | 2023-02-20 | 1.8 kB | |
| EX3.vbproj.user | 2023-02-20 | 2.0 kB | |
| Totals: 9 Items | 31.9 kB | 0 | |
VB.net Example 3
This state machine "recognizes" palindromes (words that read the
same backwards as forwards). The words consist of the alphabet
{0, 1, c} where the letter 'c' may appear only once and marks the
words center.
+ 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 ""
-> unacceptable
$ checkstring.exe 00
-> unacceptable
$ checkstring.exe 1c
-> unacceptable
$ checkstring.exe c0
-> unacceptable
$ checkstring.exe 110010c010011
-> acceptable
$ checkstring.exe 110010c110010
-> unacceptable