Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 19, 2009
  1. @laverdet

    Complete rewrite; version 1.1.0

    laverdet authored
    Summary: I deleted most of XHP and started over. Points of interest:
             - Compatibility with at least PHP 5.3, likely up to PHP 6.0.
             - Uses PHP's parser instead the one I wrote
             - Rewritten scanner. The scanner now returns code_rope's with the
             actual code that was scanned, along with line numbers.
             - Separate the XHP parser and extension code
             - Further improved build process
             - No new features
    
    Reviewed By: epriestley
    
    Other Commenters: iproctor
    
    Test Plan: marcel@dev050 ~/alpaca $ php ./lib/init/script.php 
               marcel@dev050 ~/alpaca
               
               More testing will be done before committing this to APE.
    
    Revert: OK
    
    DiffCamp Revision: 64717
Commits on Jul 18, 2009
  1. @laverdet

    Fixes and stuff

    laverdet authored
    Summary: Fixes some bugs in the grammar.
             
             Move ext.cpp over to the shared function in xhp_preprocess.cpp.
             
             Most of this code is probably pretty bad... So let me know if you
             hate me or not.
    
    Reviewed By: epriestley
    
    Test Plan: valgrind doesn't show any terrible leaks
    
    Revert: OK
    
    DiffCamp Revision: 55388
Commits on Jun 26, 2009
  1. @laverdet

    More parser gliches

    laverdet authored
    Summary:
    Interesting programs and their outputs:
    
    <?php
    //?????>hello
    ---
    hello
    
    <?php
    $foo->if();
    ---
    <works>
    
    <?php
    $foo-> if()
    ---
    <syntax error>
    
    Anyway, PHP's parser is a huge mess.
    
    Reviewed By: no one
    
    Test Plan: Disabled "maybe_xhp" check, then `find . | grep php$ | xargs -n1 php -l`. No errors!
    
    Revert Plan: ok
Commits on Jun 25, 2009
  1. @laverdet

    Fix glitches and stuff

    laverdet authored
    Summary:
    - abstract elements are now allowed
    - fix `element` keyword if no markup appears in the file
    - allow <a\nhref="..." />; where \n is an actualy linebreak
    - fix certain heredocs
    
    Reviewed By: no one
    
    Test Plan: master_include.php \ test cases from evan
    
    Revert Plan: ok
Commits on Jun 24, 2009
  1. @laverdet

    Balance tags

    laverdet authored
    Summary:
    Syntax error when tags don't match.
    
    Also this fixes array typehints
    
    Reviewed By: no one
    
    Test Plan: master_include.php
    
    Revert Plan: ok
  2. @laverdet

    Bug fixes and rewrites

    laverdet authored
    Summary:
    Progress on cleaning up the parser rules to bring XHP more in sync with Zend. This also fixes some bugs in the XHP grammar Evan pointed out.
    
    Reviewed By: no one
    
    Test Plan: ran master_include.php
    
    Revert Plan: ok
Commits on Jun 22, 2009
  1. @laverdet

    Quick checkin

    laverdet authored
    Summary: I just want a checkin of this somewhere that's not my dev server.
    
    Test Plan: None
Something went wrong with that request. Please try again.