// // responds to Slash event // public override void Slash(StripFSM name) { // change the state name.SetState(name.GetItsSecondSlashState()); // Exit functions for: startingSlash name.StartingSlashOut(); // Entry functions for: inComment name.InCommentIn(); // Entry functions for: secondSlash name.SecondSlashIn(); }
// // responds to Other event // public override void Other(StripFSM name) { name.PutSlash(); name.PutChar(); // change the state name.SetState(name.GetItsOutsideState()); // Exit functions for: startingSlash name.StartingSlashOut(); // Entry functions for: outside name.OutsideIn(); }
// // responds to Star event // public override void Star(StripFSM name) { // change the state name.SetState(name.GetItsStarAfterSlashState()); // Exit functions for: startingSlash name.StartingSlashOut(); // Entry functions for: inComment name.InCommentIn(); // Entry functions for: starAfterSlash name.StarAfterSlashIn(); }