def p_Value(self, p):
        """Value : valueofObjectSyntax
                 | '{' BitsValue '}'"""
        n = len(p)
        if n == 2:
            p[0] = p[1]
        elif n == 4:
            p[0] = p[2]
def p_Value(self, p):
        
        n = len(p)
        if n == 2:
            p[0] = p[1]
        elif n == 4:
            p[0] = p[2]
def p_Value ( self , p ) : n = len ( p ) if n == 2 : p [ 0 ] = p [ 1 ] elif n == 4 : p [ 0 ] = p [ 2 ]
Value : valueofObjectSyntax
                 | '{' BitsValue '}
Value : valueofObjectSyntax | { BitsValue }