Simplified Integer State Diagram

image missing

Parse a string and verify it is an integer. In the above diagram:

DIGIT-the characters "0" thru "9"
EOS-end of string

Note: The starting and ending spaces have been removed from the string.