PackageTrack

Go modules · #1760

github.com/z7zmey/php-parser

v0.7.2z7zmey/php-parser

Release timeline

34 releases since 2018
20182020202220242026

Releases

  1. v0.8.0-rc.1.0.20210317185956-86da63c064a317 Mar 2021pre-release

    Nothing published for this version

  2. v0.8.0-rc.1.0.20210213215434-367eff9de65113 Feb 2021pre-release

    Nothing published for this version

  3. v0.8.0-rc.129 Dec 2020pre-release
    Release notes

    Merge pull request #117 from z7zmey/refactoring

    Refactoring

    Open source →
  4. v0.7.3-0.20201229193114-4d6130d98d3429 Dec 2020pre-release

    Nothing published for this version

  5. v0.7.3-0.20201229192840-5fd7577b66af29 Dec 2020pre-release

    Nothing published for this version

  6. v0.7.3-0.20201018163633-4f089bc24c2618 Oct 2020pre-release

    Nothing published for this version

  7. v0.7.3-0.20200903192120-0cd26d7f4b3d3 Sept 2020pre-release

    Nothing published for this version

  8. v0.7.226 Jul 2020
    Release notes

    [#105] Fix counting newlines in strings
    [#110] Fix JSON dumper
    [#109] Do not override Stmts in printNodeRoot()
    [#111] NamespaceResolver: Resolve PHP 7.4 class property types

    Open source →
  9. v0.7.114 Jun 2020
    Release notes

    [#107] fix infinite loop when $ appear between variable and the end of a template string

    Open source →
  10. v0.7.1-0.20200614203744-7d4cc3b6e55514 Jun 2020pre-release

    Nothing published for this version

  11. v0.7.09 Mar 2020
    Release notes

    [#82] PHP 7.4
    [#93] Wrong line number when parsing string
    [#91] Scanner doesn't support \x80-\xff identifiers
    [#86] JsonDumper don't work
    [#78] Print echo
    [#80] Ragel based lexer

    Open source →
  12. v0.6.2-0.20200309115158-c9961c21245d9 Mar 2020pre-release

    Nothing published for this version

  13. v0.6.120 Aug 2019
    Release notes

    #96 handle lexer errors

    Open source →
  14. v0.6.1-0.20210317185956-86da63c064a317 Mar 2021pre-release

    Nothing published for this version

  15. v0.6.025 Feb 2019
    Release notes

    new

    golang/json dumper
    saving and printing free-floating comments and whitespaces

    nodes

    attribute StringVar was removed from expr.Variable
    node stmt.Die was removed, added Die attribute to stmt.Exit instead

    optimizations

    save position within node
    use sync.Pool to reuse scanner.Token

    bugfix

    __halt_compiler(); terminates parsing process
    accept backslash+newline in single quotes
    fixed /*/ comment termination
    fixed crash on an empty list item, missed items are represented by empty *expr.ArrayItem

    Open source →
  16. v0.5.2-0.20200108074723-e27faddfa5888 Jan 2020pre-release

    Nothing published for this version

  17. v0.5.2-0.20200108073140-003ee67a86ae8 Jan 2020pre-release

    Nothing published for this version

  18. v0.5.2-0.20191229223145-2bf270c61b6f29 Dec 2019pre-release

    Nothing published for this version

  19. v0.5.2-0.20191027232055-0b9ab6e7386e27 Oct 2019pre-release

    Nothing published for this version

  20. v0.5.2-0.20190607063335-e4a208e2a9d87 Jun 2019pre-release

    Nothing published for this version

  21. v0.5.2-0.20190328191051-f06a8ebb51f628 Mar 2019pre-release

    Nothing published for this version

  22. v0.5.126 Jun 2018
    Release notes

    #44: if array item list ends by a comma, last nil does not removed
    #44: fixed crash on an empty list item
    #41: Namespace resolver now does not resolve build-in primitives
    Fixed bug: Namespace resolver fails when TraitUse does not contain adaptations
    #40: memory allocations reduced for position.Position by using sync.Pool
    #27: memory allocations reduced for scanner.Token by using sync.Pool
    #26: TrimLeft replaced by TrimLeftFunc (small optimization)
    #38: fixed saving positions for php5 ArrayDimFetch, PropertyFetch and MethodCall nodes
    #34: fixed saving position for Class node

    Open source →
  23. v0.5.1-0.20190607064819-498e93d178817 Jun 2019pre-release

    Nothing published for this version

  24. v0.5.07 Jun 2018
    Release notes

    Enhancements:

    • Error-tolerant parsing
    • Possibility to parse files concurrently
    • Saving all comments
    • Saving comments position

    Breaking changes:

    • Removed DocComment and PlainComment types
    • Removed boolWithToken, altSintaxNode, nodesWithEndToken types
    • Created node.Root, node.ArgumentList, stmt.TraitAdaptationList, stmt.CaseList, stmt.ClassExtends, stmt.ClassImplements, stmt.InterfaceExtends, expr.Reference nodes
    • Changed ClosureUse node purpose, now it represents variables list instead of wrapping the variable
    • Builder was renamed to PositionBuilder
    • scanner.CreateToken returns pointer
    • scanner.Token saves position as position.Position
    • Parser interface moved to parser package
    • token package merged into scanner package
    • Positions and Comments moved into parser package

    Fixes:

    • scanner: added (binary) cast
    • #28 fixed race conditions
    • #18 heredocLabel variable moved from global into scanner.Lexer
    • fixed panic on 32-bit systems
    • fixed bug when scanning an empty inline comment
    • fixed namespace resolver fail on anonymous class
    • fixed the saving non-latin comments

    Optimisations:

    • #21 refactored scanner.Lexer.charsToBytes and renamed to scanner.Lexer.tokenString
    Open source →
  25. v0.4.1-0.20180524091831-d67d45948ac124 May 2018pre-release

    Nothing published for this version

  26. v0.4.06 Apr 2018
    Release notes

    Created simple pretty printer
    Created Heredoc node
    Fixed Heredoc scanning
    Fixed template strings and backquoted strings scanning
    Dumper now writes to io.writer
    Removed redundant nop before InlineHtml
    Renamed assign.AssignRef to assign.Reference
    Renamed cast nodes, remove Cast prefix

    Open source →
  27. v0.3.01 Mar 2018
    Release notes

    Namespace resolver

    Namespace resolver is a visitor that traverses nodes and resolves name nodes as fully qualified names.
    It does not change AST but collects resolved names into map[node.Node]string

    For Class, Interface, Trait, Function, ConstList nodes collects name with current namespace.
    For Name, Relative, 'FullyQualified' nodes resolves use aliases and collects a fully qualified name.

    Other changes

    • Remove the underscore from package names
    • Fix goreportcard.com warnings
    • Rename Walker to Walkable interface
    • Add Names interface
    • Add dumper and namespace_resolver tests
    Open source →
  28. v0.2.019 Feb 2018

    Nothing published for this version

  29. v0.1.06 Feb 2018

    Nothing published for this version

  30. v0.0.0-20210213215434-367eff9de65113 Feb 2021pre-release

    Nothing published for this version

  31. v0.0.0-20200309115535-d7e0c8f6daad9 Mar 2020pre-release

    Nothing published for this version

  32. v0.0.0-20180630213831-978e609f290730 Jun 2018pre-release

    Nothing published for this version

  33. v0.0.0-20180524091831-d67d45948ac124 May 2018pre-release

    Nothing published for this version

  34. v0.0.0-20180410215857-983c721e83bb10 Apr 2018pre-release

    Nothing published for this version