def Rep(re):
 result = Opt(Rep1(re))
 result.str = ('Rep(%s)' % re)
 return result

def Rep ( re ) : result = Opt ( Rep1 ( re ) ) result . str = ( 'Rep(%s)' % re ) return result
rep is an re which matches zero or more repetitions of |re| .