class_docstr: This is a Finite State Machine (FSM).
      
docstr: This creates the FSM. You set the initial state here. The "memory"
  attribute is any object that you want to pass along to the action
  functions. It is not used by the FSM. For parsing you would typically
  pass a list to be used as a stack. 
docstr_tok: ["This","creates","the","FSM",".","You","set","the","initial","state","here",".","The","``","memory","''","attribute","is","any","object","that","you","want","to","pass","along","to","the","action","functions",".","It","is","not","used","by","the","FSM",".","For","parsing","you","would","typically","pass","a","list","to","be","used","as","a","stack","."]
code: def __init__(self, initial_state, memory=None):
      """This creates the FSM. You set the initial state here. The "memory"
      attribute is any object that you want to pass along to the action
      functions. It is not used by the FSM. For parsing you would typically
      pass a list to be used as a stack."""
  
      # Map (input_symbol, current_state) --> (action, next_state).
      self.state_transitions = {}
      # Map (current_state) --> (action, next_state).
      self.state_transitions_any = {}
      self.default_transition = None
  
      self.input_symbol = None
      self.initial_state = initial_state
      self.current_state = self.initial_state
      self.next_state = None
      self.action = None
      self.memory = memory
  
imports: import sys
  import string
label_desc: Use image node_id 1 to create a new FSM object  with example: obj = FSM(initial_state, memory)