Transform Repeat AST nodes into NFAs