| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| checkstring.cs | 2023-02-20 | 2.0 kB | |
| AppClass.cs | 2023-02-20 | 2.9 kB | |
| AssemblyInfo.cs | 2023-02-20 | 2.4 kB | |
| EX2.csproj | 2023-02-20 | 4.1 kB | |
| EX2.csproj.user | 2023-02-20 | 2.1 kB | |
| EX2.sln | 2023-02-20 | 890 Bytes | |
| README.txt | 2023-02-20 | 804 Bytes | |
| AppClass.sm | 2023-02-20 | 2.8 kB | |
| Totals: 8 Items | 17.9 kB | 0 | |
C# Example 2
This state machine "recognizes" the string 0*1* (which includes the
empty string).
+ 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 acceptable.
$ checkstring 000
The string "000" is acceptable.
$ checkstring 00011
The string "00011" is acceptable.
$ checkstring 111
The string "111" is acceptable.
$ checkstring 000111100
The string "000111100" is not acceptable.
$ checkstring 00011a1b10c0
The string "00011a1b10c0" is not acceptable.