question: private RE concat ( RE x , RE y ) { if ( rec == Recursion . RIGHT ) { return x . concat ( y ) ; } else { return y . concat ( x ) ; } }
target:  Given a pair of regular expressions, concatenate them in a manner consistent with this production's recursion form (left- or right-recursive).