code: def p_simple_command_element(p):
      '''simple_command_element : WORD
                                | ASSIGNMENT_WORD
                                | redirection'''
      if isinstance(p[1], ast.node):
          p[0] = [p[1]]
          return
  
      parserobj = p.context
      p[0] = [_expandword(parserobj, p.slice[1])]
  
      # change the word node to an assignment if necessary
      if p.slice[1].ttype == tokenizer.tokentype.ASSIGNMENT_WORD:
          p[0][0].kind = 'assignmentf p_simple_command_element(p):
      '''simple_command_element : WORD
                                | ASSIGNMENT_WORD
                                | redirection'''
      if isinstance(p[1], ast.node):
          p[0] = [p[1]]
          return
  
      parserobj = p.context
      p[0] = [_expandword(parserobj, p.slice[1])]
  
      # change the word node to an assignment if necessary
      if p.slice[1].ttype == tokenizer.tokentype.ASSIGNMENT_WORD:
          p[0][0].kind = 'assignment'
docs: simple_command_element : WORD
                                | ASSIGNMENT_WORD
                                | redirection