@staticmethod<EOL><INDENT>def p_typeSMIv1(self, p):<DEDENT>
n = len(p)<EOL>indextype = n == <NUM_LIT:3> and p[<NUM_LIT:1>] + '<STR_LIT:U+0020>' + p[<NUM_LIT:2>] or p[<NUM_LIT:1>]<EOL>p[<NUM_LIT:0>] = indextype<EOL>
typeSMIv1 : INTEGER
                     | OCTET STRING
                     | IPADDRESS
                     | NETWORKADDRESS