Permalink
Commits on Aug 11, 2016
  1. @ntzm

    Fix typo in grammar/README.md

    ntzm committed with Aug 11, 2016
Commits on Jul 25, 2016
  1. Implement JsonSerializable for Nodes and Comments

    Exposes the properties and adds an additional nodeType property.
    committed Jul 25, 2016
  2. Decrement errorState when recovering from -> error

    It's likely that an error after -> will trigger another one due to
    missing semicolon without shifting a single token. We prevent an
    immediate failure in this case by manually setting errorState to 2,
    which will suppress the duplicate error message, but allow error
    recovery.
    committed Jul 25, 2016
  3. Support partial parsing of $foo->

    Introduce Error node for this purpose.
    committed Jul 25, 2016
  4. Add hasLeadingNewline attribute to InlineHTML

    Use this attribute to not print an extra newline if the original
    code did not have it.
    committed Jul 25, 2016
  5. Release version 3.0.0 alpha 1

    committed Jul 25, 2016
  6. Add upgrading information

    committed Jul 25, 2016
  7. Make PrettyPrinter\Standard methods protected

    I'm not sure how these ever ended up being public.
    committed Jul 25, 2016
  8. Introduce explicit Finally node

    committed Jul 25, 2016
  9. Remove analyze.php

    Has outlived its usefulness...
    committed Jul 25, 2016
  10. Rename $type subnode to $flags

    Type makes it sound like a type-hint, and on a number of other nodes
    $type is used for exactly that. Use $flags to hold modifiers instead.
    committed Jul 25, 2016
Commits on Jul 22, 2016
  1. Update some PHP version numbers

    committed Jul 22, 2016
  2. Update changelog

    committed Jul 22, 2016
  3. PHP 7.1: Support multi-catch

    Catch::$type is now an array Catch::$types.
    committed Jul 22, 2016
Commits on Jul 9, 2016
  1. PHP 7.1: list() with keys

    Expr\List will now contain ArrayItems instead of plain variables.
    I'm reusing ArrayItem, because code handling list() must also handle
    arrays, and this allows both to go through the same code path.
    
    This also renames Expr\List->vars to ->items.
    
    TODO: Should Expr\List be dropped in favor of Expr\Array with an
    extra flag?
    committed Jul 9, 2016
Commits on Jul 6, 2016
  1. PHP 7: Short destructuring syntax

    Potentially the pretty printer should force use of [] in assignment
    context, instead of relying on the existance of the right attribute.
    committed Jul 6, 2016
  2. PHP 7: Support nullable types

    Using a new NullableType node.
    committed Jul 6, 2016
  3. Merge branch '2.x'

    committed Jul 6, 2016
Commits on Jul 5, 2016
  1. PHP 7.1: Add void+iterable support

    In PHP 7 mode, these will now be represented as strings 'void'
    and 'iterable'.
    committed Jul 5, 2016
  2. Remove support for PHP 5.4

    committed Jul 5, 2016
  3. Targeting PHP-Parser 3.0

    committed Jul 5, 2016
Commits on Apr 20, 2016
  1. Improve error recovery quality

    In particular, support recovering from a missing trailing semicolon,
    while keeping the rest of the expression.
    committed Apr 20, 2016
  2. Fix new.test and code test runner

    Using only the basename leads to collisions...
    committed Apr 20, 2016
Commits on Apr 19, 2016
  1. @algo13
  2. Release PHP-Parser 2.1.0

    committed Apr 19, 2016