Author: bernhard
Date: Sun May 4 03:37:13 2008
New Revision: 27317
Modified:
trunk/languages/plumhead/src/common/plumhead.pir
Log:
[Plumhead]
Disentangle the PCT and ANTLR3 variants.
Modified: trunk/languages/plumhead/src/common/plumhead.pir
==============================================================================
--- trunk/languages/plumhead/src/common/plumhead.pir (original)
+++ trunk/languages/plumhead/src/common/plumhead.pir Sun May 4 03:37:13 2008
@@ -145,7 +145,13 @@
cmd = 'xsltproc languages/plumhead/src/phc/past_xml_to_past_pir.xsl
plumhead_past.xml > plumhead_past.pir'
ret = spawnw cmd
if ret goto ERROR
- goto EXECUTE_PAST_PIR
+ err_msg = 'Executing plumhead_past.pir with parrot failed'
+ cmd = './parrot plumhead_past.pir'
+ ret = spawnw cmd
+ if ret goto ERROR
+
+ exit 0
+
VARIANT_ANTLR3:
err_msg = 'Generating PAST from annotated PHP source failed'
@@ -154,21 +160,11 @@
concat cmd, ' plumhead_past.pir'
ret = spawnw cmd
if ret goto ERROR
- goto EXECUTE_PAST_PIR
-
-EXECUTE_PAST_PIR:
err_msg = 'Executing plumhead_past.pir with parrot failed'
cmd = './parrot plumhead_past.pir'
ret = spawnw cmd
if ret goto ERROR
- # Clean up temporary files
- #.local pmc os
- #os = new .OS
- #os."rm"('plumhead_phc_ast.xml')
- #os."rm"('plumhead_past.xml')
- #os."rm"('plumhead_past.pir')
-
exit 0
ERROR: