by Matt Dibb (3 Submissions)
Category: Math/Dates
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This is an example of what can be done with the finite state machine code I have uploaded (see my other submissions). It shows how you can define a particular grammar and how to check to see if that sentance fits this grammar/syntax. This would be helpful for text adventures etc, and should also give you an idea about how else you can implement other systems using FSMs. The output is printed to the debug window (Ctrl-G).
Download Finite State Machine example: checking syntax (6 KB)