code: def p_list_terminator(p):
      '''list_terminator : NEWLINE
                         | SEMICOLON
                         | EOF'''
      if p[1] == ';':
          p[0] = ast.node(kind='operator', op=';', pos=p.lexspan(1)f p_list_terminator(p):
      '''list_terminator : NEWLINE
                         | SEMICOLON
                         | EOF'''
      if p[1] == ';':
          p[0] = ast.node(kind='operator', op=';', pos=p.lexspan(1))
docs: list_terminator : NEWLINE
                         | SEMICOLON
                         | EOF