Added "Raw" to be able to get to raw parser output.
Ken Youens-Clark [Wed, 29 Jan 2003 02:43:44 +0000 (02:43 +0000)]
lib/SQL/Translator/Producer/Raw.pm [new file with mode: 0644]

diff --git a/lib/SQL/Translator/Producer/Raw.pm b/lib/SQL/Translator/Producer/Raw.pm
new file mode 100644 (file)
index 0000000..b11db28
--- /dev/null
@@ -0,0 +1,61 @@
+package SQL::Translator::Producer::Raw;
+
+# -------------------------------------------------------------------
+# $Id: Raw.pm,v 1.1 2003-01-29 02:43:44 kycl4rk Exp $
+# -------------------------------------------------------------------
+# Copyright (C) 2002 Ken Y. Clark <kclark@cpan.org>,
+#                    darren chamberlain <darren@cpan.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; version 2.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307  USA
+# -------------------------------------------------------------------
+
+=head1 NAME
+
+SQL::Translator::Producer::Raw - Raw output (data structure)
+
+=head1 SYNOPSIS
+
+  use SQL::Translator::Producer::Raw;
+
+=head1 DESCRIPTION
+
+Returns a raw data structure from whatever parser was used.
+
+=cut
+
+use strict;
+use vars qw[ $VERSION ];
+$VERSION = sprintf "%d.%02d", q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/;
+
+# -------------------------------------------------------------------
+sub produce {
+    my ( $translator, $data ) = @_;
+    return $data;
+}
+
+1;
+
+# -------------------------------------------------------------------
+# Something there is that doesn't love a wall.
+# Robert Frost
+# -------------------------------------------------------------------
+
+=pod
+
+=head1 AUTHOR
+
+Ken Y. Clark E<lt>kclark@cpan.orgE<gt>
+
+=cut