github.com/z7zmey/php-parser
v0.7.2
#1760 most downloaded on Go modules
z7zmey/php-parser
What this package is like to depend on
Last release 5 years ago
no release in 18 months
Ships fairly regularly
a new release about every 2 months
Most releases are documented
notes for 9 of 11 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
33 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
33 releases · Feb 2018 to Mar 2021Releases
latest 33-
v0.8.0-rc.1.0.20210317185956-86da63c064a317 Mar 2021 pre-releaseNothing published for this version
-
v0.8.0-rc.1.0.20210213215434-367eff9de65113 Feb 2021 pre-releaseNothing published for this version
-
v0.8.0-rc.129 Dec 2020 pre-release -
v0.7.3-0.20201229193114-4d6130d98d3429 Dec 2020 pre-releaseNothing published for this version
-
v0.7.3-0.20201229192840-5fd7577b66af29 Dec 2020 pre-releaseNothing published for this version
-
v0.7.3-0.20201018163633-4f089bc24c2618 Oct 2020 pre-releaseNothing published for this version
-
v0.7.3-0.20200903192120-0cd26d7f4b3d03 Sep 2020 pre-releaseNothing published for this version
-
v0.7.226 Jul 2020Release notes
Open source →[#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 -
v0.7.114 Jun 2020Release notes
Open source →[#107] fix infinite loop when $ appear between variable and the end of a template string
-
v0.7.1-0.20200614203744-7d4cc3b6e55514 Jun 2020 pre-releaseNothing published for this version
-
v0.7.009 Mar 2020 -
v0.6.2-0.20200309115158-c9961c21245d09 Mar 2020 pre-releaseNothing published for this version
-
v0.6.120 Aug 2019 -
v0.6.025 Feb 2019Release notes
Open source →new
golang/json dumper
saving and printing free-floating comments and whitespacesnodes
attribute
StringVarwas removed fromexpr.Variable
nodestmt.Diewas removed, addedDieattribute tostmt.Exitinsteadoptimizations
save position within node
usesync.Poolto reusescanner.Tokenbugfix
__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 -
v0.5.2-0.20200108074723-e27faddfa58808 Jan 2020 pre-releaseNothing published for this version
-
v0.5.2-0.20200108073140-003ee67a86ae08 Jan 2020 pre-releaseNothing published for this version
-
v0.5.2-0.20191229223145-2bf270c61b6f29 Dec 2019 pre-releaseNothing published for this version
-
v0.5.2-0.20191027232055-0b9ab6e7386e27 Oct 2019 pre-releaseNothing published for this version
-
v0.5.2-0.20190607063335-e4a208e2a9d807 Jun 2019 pre-releaseNothing published for this version
-
v0.5.2-0.20190328191051-f06a8ebb51f628 Mar 2019 pre-releaseNothing published for this version
-
v0.5.126 Jun 2018Release notes
Open source →#44: if array item list ends by a comma, last nil does not removed
#44: fixed crash on an empty list item
#41:Namespace resolvernow does not resolve build-in primitives
Fixed bug:Namespace resolverfails whenTraitUsedoes not contain adaptations
#40: memory allocations reduced forposition.Positionby usingsync.Pool
#27: memory allocations reduced forscanner.Tokenby usingsync.Pool
#26:TrimLeftreplaced byTrimLeftFunc(small optimization)
#38: fixed saving positions for php5ArrayDimFetch,PropertyFetchandMethodCallnodes
#34: fixed saving position forClassnode -
v0.5.1-0.20190607064819-498e93d1788107 Jun 2019 pre-releaseNothing published for this version
-
v0.5.007 Jun 2018Release notes
Open source →Enhancements:
- Error-tolerant parsing
- Possibility to parse files concurrently
- Saving all comments
- Saving comments position
Breaking changes:
- Removed
DocCommentandPlainCommenttypes - Removed
boolWithToken,altSintaxNode,nodesWithEndTokentypes - Created
node.Root,node.ArgumentList,stmt.TraitAdaptationList,stmt.CaseList,stmt.ClassExtends,stmt.ClassImplements,stmt.InterfaceExtends,expr.Referencenodes - Changed
ClosureUsenode purpose, now it represents variables list instead of wrapping the variable Builderwas renamed toPositionBuilderscanner.CreateTokenreturns pointerscanner.Tokensaves position asposition.PositionParserinterface moved toparserpackagetokenpackage merged intoscannerpackagePositionsandCommentsmoved intoparserpackage
Fixes:
- scanner: added
(binary)cast - #28 fixed race conditions
- #18
heredocLabelvariable moved from global intoscanner.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.charsToBytesand renamed toscanner.Lexer.tokenString
-
v0.4.1-0.20180524091831-d67d45948ac124 May 2018 pre-releaseNothing published for this version
-
v0.4.006 Apr 2018Release notes
Open source →Created simple pretty printer
CreatedHeredocnode
Fixed Heredoc scanning
Fixed template strings and backquoted strings scanning
Dumper now writes toio.writer
Removed redundant nop beforeInlineHtml
Renamedassign.AssignReftoassign.Reference
Renamed cast nodes, removeCastprefix -
v0.3.001 Mar 2018Release notes
Open source →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 intomap[node.Node]stringFor
Class,Interface,Trait,Function,ConstListnodes collects name with current namespace.
ForName,Relative, 'FullyQualified' nodes resolvesuse aliasesand collects a fully qualified name.Other changes
- Remove the underscore from package names
- Fix
goreportcard.comwarnings - Rename
WalkertoWalkableinterface - Add
Namesinterface - Add
dumperandnamespace_resolvertests
-
v0.2.019 Feb 2018Nothing published for this version
-
v0.1.006 Feb 2018Nothing published for this version
-
v0.0.0-20210213215434-367eff9de65113 Feb 2021 pre-releaseNothing published for this version
-
v0.0.0-20200309115535-d7e0c8f6daad09 Mar 2020 pre-releaseNothing published for this version
-
v0.0.0-20180630213831-978e609f290730 Jun 2018 pre-releaseNothing published for this version
-
v0.0.0-20180524091831-d67d45948ac124 May 2018 pre-releaseNothing published for this version
-
v0.0.0-20180410215857-983c721e83bb10 Apr 2018 pre-releaseNothing published for this version