develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34191 - in trunk: . languages/pipp/docs languages/pipp/src/antlr3 languages/pipp/src/common

From:
bernhard
Date:
December 21, 2008 03:17
Subject:
[svn:parrot] r34191 - in trunk: . languages/pipp/docs languages/pipp/src/antlr3 languages/pipp/src/common
Message ID:
20081221111656.00BD8CBA12@x12.develooper.com
Author: bernhard
Date: Sun Dec 21 03:16:53 2008
New Revision: 34191

Removed:
   trunk/languages/pipp/src/antlr3/
Modified:
   trunk/MANIFEST
   trunk/MANIFEST.SKIP
   trunk/languages/pipp/docs/pipp.pod
   trunk/languages/pipp/src/common/pipp.pir

Log:
[Pipp] Remove support for the Antlr3 variant.


Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST	(original)
+++ trunk/MANIFEST	Sun Dec 21 03:16:53 2008
@@ -1,7 +1,7 @@
 # ex: set ro:
 # $Id$
 #
-# generated by tools/dev/mk_manifest_and_skip.pl Sun Dec 21 10:31:45 2008 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Sun Dec 21 11:16:23 2008 UT
 #
 # See tools/dev/install_files.pl for documentation on the
 # format of this file.
@@ -2230,11 +2230,6 @@
 languages/pipp/lib/Parrot/Test/Pipp/PHP.pm                  [pipp]
 languages/pipp/lib/Parrot/Test/Pipp/Phc.pm                  [pipp]
 languages/pipp/past_xml.xsd                                 [pipp]
-languages/pipp/src/antlr3/GenPastNqp.g                      [pipp]
-languages/pipp/src/antlr3/GenPastNqp.java                   [pipp]
-languages/pipp/src/antlr3/Pipp.g                            [pipp]
-languages/pipp/src/antlr3/PippLexer.java                    [pipp]
-languages/pipp/src/antlr3/PippParser.java                   [pipp]
 languages/pipp/src/build/genskel.pl                         [pipp]
 languages/pipp/src/common/builtins.pir                      [pipp]
 languages/pipp/src/common/eval.pir                          [pipp]

Modified: trunk/MANIFEST.SKIP
==============================================================================
--- trunk/MANIFEST.SKIP	(original)
+++ trunk/MANIFEST.SKIP	Sun Dec 21 03:16:53 2008
@@ -1,6 +1,6 @@
 # ex: set ro:
 # $Id$
-# generated by tools/dev/mk_manifest_and_skip.pl Sun Dec 21 10:31:45 2008 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Sun Dec 21 11:16:23 2008 UT
 #
 # This file should contain a transcript of the svn:ignore properties
 # of the directories in the Parrot subversion repository. (Needed for
@@ -1133,15 +1133,6 @@
 ^languages/pipp/pipp_phc_past\.xml/
 ^languages/pipp/pipp_test_run\.tar\.gz$
 ^languages/pipp/pipp_test_run\.tar\.gz/
-# generated from svn:ignore of 'languages/pipp/src/antlr3/'
-^languages/pipp/src/antlr3/.*\.class$
-^languages/pipp/src/antlr3/.*\.class/
-^languages/pipp/src/antlr3/.*\.tokens$
-^languages/pipp/src/antlr3/.*\.tokens/
-^languages/pipp/src/antlr3/.*__\.g$
-^languages/pipp/src/antlr3/.*__\.g/
-^languages/pipp/src/antlr3/.*__\.gl$
-^languages/pipp/src/antlr3/.*__\.gl/
 # generated from svn:ignore of 'languages/pipp/src/build/'
 ^languages/pipp/src/build/php_.*\.pir$
 ^languages/pipp/src/build/php_.*\.pir/

Modified: trunk/languages/pipp/docs/pipp.pod
==============================================================================
--- trunk/languages/pipp/docs/pipp.pod	(original)
+++ trunk/languages/pipp/docs/pipp.pod	Sun Dec 21 03:16:53 2008
@@ -14,9 +14,6 @@
 Implement PHP.
 Support well behaving PHP extensions.
 
-A secondary goal is to provide a side by side comparison
-of different parsing and tree transformation techniques.
-
 =head1 Divergences of Pipp
 
 =over 4
@@ -31,7 +28,7 @@
 
 =head1 Variants
 
-Therefore there are currently three variants of Pipp:
+There are currently two variants of Pipp:
 
 =over
 
@@ -39,8 +36,6 @@
 
 =item phc       - take XML output from phc and munge it with XSLT
 
-=item antlr3    - ANTLR3, converted from languages/bc, started
-
 =back
 
 =head1 Status
@@ -55,10 +50,6 @@
 
 xsltproc and phc need to be in PATH.
 
-=item antlr3
-
-ANTLR3 generating Java code.
-
 =back
 
 =head1 Author

Modified: trunk/languages/pipp/src/common/pipp.pir
==============================================================================
--- trunk/languages/pipp/src/common/pipp.pir	(original)
+++ trunk/languages/pipp/src/common/pipp.pir	Sun Dec 21 03:16:53 2008
@@ -22,9 +22,7 @@
 
 =head1 DESCRIPTION
 
-pipp.pbc is the driver for the three variants of PHP on Parrot.
-It can alse be used for running the NQP code generated by the variants B<phc>
-and <antlr3>.
+pipp.pbc is the driver for Pipp.
 
 =head1 Variants
 
@@ -37,13 +35,9 @@
 Take XML from phc and transform it with XSLT to PIR setting up PAST.
 Run the PAST with the help of PCT.
 
-=head2 Pipp antlr
-
-Parse PHP with Java based parser and tree parser, generated from ANTLR3 grammars.
-
 =head1 SEE ALSO
 
-F<languages/pipp/docs>
+L<http://pipp.org>
 
 =head1 AUTHOR
 
@@ -185,10 +179,6 @@
     goto GOT_VARIANT
 
 GOT_VARIANT:
-    if variant == 'antlr3'    goto VARIANT_ANTLR3
-    if variant == 'ANTLR3'    goto VARIANT_ANTLR3
-    if variant == 'antlr'     goto VARIANT_ANTLR3
-    if variant == 'ANTLR'     goto VARIANT_ANTLR3
     if variant == 'pct'       goto VARIANT_PCT
     if variant == 'PCT'       goto VARIANT_PCT
     if variant == 'phc'       goto VARIANT_PHC
@@ -238,18 +228,6 @@
 
     .tailcall run_nqp( 'pipp_phc_past.nqp', target )
 
-
-VARIANT_ANTLR3:
-    # parse php with antlr
-    err_msg = 'Generating PAST from annotated PHP source failed'
-    cmd = 'java PippAntlr3 '
-    concat cmd, source_fn
-    concat cmd, ' pipp_antlr_past.nqp'
-    ret = spawnw cmd
-    if ret goto ERROR
-
-    .tailcall run_nqp( 'pipp_antlr_past.nqp', target )
-
 RUN_NQP:
     .tailcall run_nqp( source_fn, target )
 
@@ -257,15 +235,8 @@
 ERROR:
     printerr err_msg
     printerr "\n"
-    # Clean up temporary files
-    #.local pmc os
-    #os = new .OS
-    #os."rm"('pipp_phc_ast.xml')
-    #os."rm"('pipp_phc_past.xml')
-    #os."rm"('pipp_phc_past.nqp')
-    #os."rm"('pipp_antlr_past.nqp')
 
-   exit ret
+    exit ret
 
 .end
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About