Regular expression AST