How (not) to code a finite state machine

  • Authors:
  • D. W. Jones

  • Affiliations:
  • Univ. of Iowa, Iowa City

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1988

Quantified Score

Hi-index 0.00

Visualization

Abstract

The standard advice for those coding a finite state machine is to use a while loop, a case statement, and a state variable. This is usually bad advice! The reasons for this are explored here, and better advice is formulated.