def p_PrimitiveType_double(p): """PrimitiveType : double""" p[0] = model.SimpleType(type=model.SimpleType.DOUBLE)
def p_ReturnType_void(p): """ReturnType : void""" p[0] = model.SimpleType(model.SimpleType.VOID)
def p_PrimitiveType_octet(p): """PrimitiveType : octet""" p[0] = model.SimpleType(type=model.SimpleType.OCTET)
def p_PrimitiveType_float(p): """PrimitiveType : float""" p[0] = model.SimpleType(type=model.SimpleType.FLOAT)
def p_PrimitiveType_boolean(p): """PrimitiveType : boolean""" p[0] = model.SimpleType(type=model.SimpleType.BOOLEAN)
def p_PrimitiveType_byte(p): """PrimitiveType : byte""" p[0] = model.SimpleType(type=model.SimpleType.BYTE)
def p_NonAnyType(p): """NonAnyType : Date TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.SimpleType(type=model.SimpleType.DATE), p[2])
def p_NonAnyType_object(p): """NonAnyType : object TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.SimpleType(type=model.SimpleType.OBJECT), p[2])
def p_NonAnyType_domString(p): """NonAnyType : DOMString TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.SimpleType(type=model.SimpleType.DOMSTRING), p[2])
def p_UnionMemberType_anyType(p): """UnionMemberType : any "[" "]" TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.Array(t=model.SimpleType(type=model.SimpleType.ANY)), p[4])
def p_SingleType_any(p): """SingleType : any TypeSuffixStartingWithArray""" p[0] = helper.unwrapTypeSuffix(model.SimpleType(model.SimpleType.ANY), p[2])