Пример #1
0
def p_PrimitiveType_double(p):
    """PrimitiveType : double"""
    p[0] = model.SimpleType(type=model.SimpleType.DOUBLE)
Пример #2
0
def p_ReturnType_void(p):
    """ReturnType : void"""
    p[0] = model.SimpleType(model.SimpleType.VOID)
Пример #3
0
def p_PrimitiveType_octet(p):
    """PrimitiveType : octet"""
    p[0] = model.SimpleType(type=model.SimpleType.OCTET)
Пример #4
0
def p_PrimitiveType_float(p):
    """PrimitiveType : float"""
    p[0] = model.SimpleType(type=model.SimpleType.FLOAT)
Пример #5
0
def p_PrimitiveType_boolean(p):
    """PrimitiveType : boolean"""
    p[0] = model.SimpleType(type=model.SimpleType.BOOLEAN)
Пример #6
0
def p_PrimitiveType_byte(p):
    """PrimitiveType : byte"""
    p[0] = model.SimpleType(type=model.SimpleType.BYTE)
Пример #7
0
def p_NonAnyType(p):
    """NonAnyType : Date TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.SimpleType(type=model.SimpleType.DATE), p[2])
Пример #8
0
def p_NonAnyType_object(p):
    """NonAnyType : object TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.SimpleType(type=model.SimpleType.OBJECT), p[2])
Пример #9
0
def p_NonAnyType_domString(p):
    """NonAnyType : DOMString TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.SimpleType(type=model.SimpleType.DOMSTRING), p[2])
Пример #10
0
def p_UnionMemberType_anyType(p):
    """UnionMemberType : any "[" "]" TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.Array(t=model.SimpleType(type=model.SimpleType.ANY)), p[4])
Пример #11
0
def p_SingleType_any(p):
    """SingleType : any TypeSuffixStartingWithArray"""
    p[0] = helper.unwrapTypeSuffix(model.SimpleType(model.SimpleType.ANY),
                                   p[2])