parameters: (self, p)
docstring: decl : PROTOCOL STRING SEMI
docstring_summary: decl : PROTOCOL STRING SEMI
docstring_tokens: decl : PROTOCOL STRING SEMI
function: def p_decl__protocol(self, p):
          "decl : PROTOCOL STRING SEMI"
          if self.protocol:
              msg = "Protocol can only be set once! Error at %s:%s\n" % \
                  (self.current_source, self.current_line)
              raise ParseError(msg)
          self.protocol = p[2]
          p[0] = None
function_tokens: def p_decl__protocol ( self , p ) : if self . protocol : msg = "Protocol can only be set once! Error at %s:%s\n" % ( self . current_source , self . current_line ) raise ParseError ( msg ) self . protocol = p [ 2 ] p [ 0 ] = None