def p_MandatoryGroups(self, p):
        """MandatoryGroups : MandatoryGroups ',' MandatoryGroup
                           | MandatoryGroup"""
        n = len(p)
        if n == 4:
            p[0] = ('MandatoryGroups', p[1][1] + [p[3]])
        elif n == 2:
            p[0] = ('MandatoryGroups', [p[1]])
def p_MandatoryGroups(self, p):
        """MandatoryGroups : MandatoryGroups ',' MandatoryGroup
                           | MandatoryGroup"""
        n = len(p)
        if n == 4:
            p[0] = ('MandatoryGroups', p[1][1] + [p[3]])
        elif n == 2:
            p[0] = ('MandatoryGroups', [p[1]])
def p_MandatoryGroups ( self , p ) : n = len ( p ) if n == 4 : p [ 0 ] = ( 'MandatoryGroups' , p [ 1 ] [ 1 ] + [ p [ 3 ] ] ) elif n == 2 : p [ 0 ] = ( 'MandatoryGroups' , [ p [ 1 ] ] )
MandatoryGroups : MandatoryGroups ',' MandatoryGroup
                           | MandatoryGroup
MandatoryGroups : MandatoryGroups MandatoryGroup | MandatoryGroup