Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jun 8, 2012
  1. @nikic

    Fix test failures due to precision differences

    nikic authored
    Travis 5.2 seems to have changed the float output precision, so a test was
    failing. Now the numbers in the expected output are also provided by PHP,
    so they should be the same.
  2. @nikic
  3. @nikic

    Make $line argument for Comment optional

    nikic authored
    Also add setLine() method.
Commits on Jun 6, 2012
  1. @joncave

    Add line number information to comments

    joncave authored
    Line numbers are stored in the $line property of the PHPParser_Comment
    and PHPParser_Comment_Doc classes and can be retrieved with getLine().
Commits on May 12, 2012
  1. @nikic

    Update changelog

    nikic authored
  2. @nikic

    Fix parsing of new expressions in parenthesis

    nikic authored
    The new dereferencing syntaxes (new Foo)->bar and (new Foo)['bar'] were
    causing a shift/reduce conflict with the '(' expr ')' rule. When
    (new Foo) was encountered (without dereference operators following) the
    parser thus threw a parse error.
    
    The fix simply adds a special '(' new_expr ')' rule to expr. This does not
    remove the shift/reduce conflict itself, but makes it irrelevant.
    
    This fixes issue #20.
Commits on May 11, 2012
  1. @nikic

    Improve some formatting

    nikic authored
  2. @nikic

    Replace \N with .

    nikic authored
    Older PCRE versions (coming with PHP 5.2) don't support \N yet.
  3. @nikic

    Fix getAttribute signature in Node interface

    nikic authored
    This fixes a build failure on PHP 5.2.
  4. @nikic

    Fix comment reformatting on Linux

    nikic authored
    Remove the use of \R (with BSR_ANYCRLF) at two places, as it was causing
    problems there.
  5. @nikic

    Update CHANGELOG

    nikic authored
  6. @nikic
  7. @nikic

    Update docs

    nikic authored
  8. @nikic

    Insert comments when pretty printing

    nikic authored
    This changset also adds unit tests for Comments and adds a way to test the
    pretty printer.
Commits on May 6, 2012
  1. @nikic

    Fix $node->getDocComment()

    nikic authored
    getDocComment() now returns the last comment (given that it is a doc
    comment). setDocComment() no longer exists, as it doesn't make sense
    with the comment objects anymore. getAttribute() now returns by reference,
    so it also works in reference contexts.
  2. @nikic
  3. @nikic
  4. @nikic

    Collect normal comments too, not only doc comments

    nikic authored
    Comments and doc comments are now saved in the 'comments' attribute, as an
    array. The are instances of PHPParser_Comment[_Doc].
Commits on May 5, 2012
  1. @nikic

    Generalize the attribute generation for nodes

    nikic authored
    Now two arrays are fetched from the lexer: $startAttributes and
    $endAttributes. When constructing the attributes for a node, the
    $startAttributes from the first token of the node and the $endAttributes
    of the last token of the node are merged.
    
    Now the end line is saved in the endLine attribute.
  2. @nikic

    Add progress indicator for test_old.

    nikic authored
    I hate waiting for something without seeing at least *some* output.
Commits on May 4, 2012
  1. @nikic
  2. @nikic
  3. @nikic
  4. @nikic

    Start refactoring parser skeleton

    nikic authored
    The yacc parser skeleton with all those odd $yy short names is quite
    non-obvious. This commits starts to refactor it a bit, to use more
    obvious names and logic.
  5. @nikic

    Use inject-once approach for lexer

    nikic authored
    Now the lexer is injected only once when creating the parser. Instead of
    
        $parser = new PHPParser_Parser;
        $parser->parse(new PHPParser_Lexer($code));
        $parser->parse(new PHPParser_Lexer($code2));
    
    you write:
    
        $parser = new PHPParser_Parser(new PHPParser_Lexer);
        $parser->parse($code);
        $parser->parse($code2);
  6. @nikic

    Fix typo

    nikic authored
  7. @nikic

    Merge pull request #22 from schmittjoh/resolveCatchType

    nikic authored
    fixes a bug where catch type was not resolved
  8. @nikic

    Merge pull request #21 from ss23/patch-1

    nikic authored
    Update doc/1_Usage_of_basic_components.markdown
  9. @schmittjoh
  10. @schmittjoh
  11. @ss23
Commits on Apr 23, 2012
  1. @nikic

    Release version 0.9.1

    nikic authored
    This is in anticipation of doing some backwards compatability breaking
    changes in the next version.
  2. @nikic

    Fix PHP 5.2 build failure

    nikic authored
    lcfirst() isn't defined on PHP 5.2, so I added a fallback function, which
    is defined in the bootstrap.php. Not sure whether that's the right place
    to put it.
  3. @nikic

    Add changelog

    nikic authored
  4. @nikic

    Finish up code generation docs

    nikic authored
Something went wrong with that request. Please try again.