| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| AppClass.cs | 2023-02-20 | 6.1 kB | |
| checkstring.cs | 2023-02-20 | 2.0 kB | |
| EX3.csproj.user | 2023-02-20 | 2.1 kB | |
| README.txt | 2023-02-20 | 1.0 kB | |
| AppClass.sm | 2023-02-20 | 3.3 kB | |
| AssemblyInfo.cs | 2023-02-20 | 2.4 kB | |
| EX3.csproj | 2023-02-20 | 4.1 kB | |
| EX3.sln | 2023-02-20 | 890 Bytes | |
| Totals: 8 Items | 21.9 kB | 0 | |
C# 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
word's center.
+ Building
----------
NOTE: Smc.jar must be built and installed.
Windows:
(Use Microsoft DevStudio v. 7.0 or later.)
+ Executing
-----------
Windows:
$ cd bin/Debug
OR
$ cd bin/Release
$ checkstring <string>
Try several different strings such as:
$ checkstring ""
The string "" is not acceptable.
$ checkstring 00
The string "00" is not acceptable.
$ checkstring 1c
The string "1c" is not acceptable.
$ checkstring c0
The string "c0" is not acceptable.
$ checkstring abcba
The string "abcba" is not acceptable.
$ checkstring 110010c010011
The string "110010c010011" is acceptable.
$ checkstring 110010c110010
The string "110010c110010" is not acceptable.