Ticket #235 (closed bug: done)

Opened 5 years ago

Last modified 5 years ago

PHC command line has changed

Reported by: H4ck3rm1k3 Owned by:
Priority: trivial Milestone:
Component: language Version: trunk
Severity: low Keywords: phc, xslt
Cc: Language: php
Patch status: applied Platform: linux

Description

The command line has changed for phc.

parrot/languages/pipp$ ./pipp --variant=phc ./t/php/arithmetics_1.php phc: unrecognized option '--dump-ast-xml' Creating XML-AST with phc failed

SeeAlso the phc issue:  http://code.google.com/p/phc/issues/detail?id=104

Change History

Changed 5 years ago by H4ck3rm1k3

passes ::= (ast| hir| mir)

phc --dump-xml=ast ./t/php/arithmetics_1.php works.

Changed 5 years ago by barney

  • keywords phc, xslt added; pch removed
  • status changed from new to closed
  • resolution set to invalid

The support for the non-PCT variants of Pipp was removed after Parrot 0.8.2. If there is enough intereste, I could easily add that variant again. When that happens, the command 'phc --dump-xml' needs to be changed to 'phc --dump-xml=ast'.

Changed 5 years ago by barney

  • status changed from closed to reopened
  • resolution invalid deleted

Changed 5 years ago by H4ck3rm1k3

Index: src/common/pipp.pir =================================================================== --- src/common/pipp.pir (Revision 34015) +++ src/common/pipp.pir (Arbeitskopie) @@ -216,7 +216,7 @@

# work with the XML generated by PHC, the PHP Compiler err_msg = 'Creating XML-AST with phc failed'

- cmd = 'phc --dump-ast-xml ' + cmd = 'phc --dump-xml=ast '

concat cmd, source_fn concat cmd, '> pipp_phc_ast.xml' ret = spawnw cmd

Index: src/phc/phc_xml_to_past_xml.xsl

Changed 5 years ago by barney

  • status changed from reopened to closed
  • resolution set to done
  • patch set to applied

Patch applied in r36116

Note: See TracTickets for help on using tickets.