z7zmey/php-parser
View on GitHub ↗ ★ 958 Go
PHP parser written in Go
8 mentions on Hacker News by 4 people: 6 stories, 2 comments · first 2018-02-07 · latest 2024-09-15
20082026
-
I've used this idea to speed up AST parsing: https://github.com/z7zmey/php-parser/issues/21 By just reducing cost of doing allocations (but still allocating the same number of structs) on some of the hot paths it sped up making of the AST…
comment by nasretdinov · 2024-09-15 · in Generic Freelist Allocator for Go -
…parser itself was, however, written with the parser generator goyacc rather than native Go code: https://github.com/z7zmey/php-parser/blob/master/php7/php7.y Taking a goyacc file like this and porting it to another YACC is a lower effort…
comment by sshine · 2018-03-02 · in Php-parser written in golang v0.3 is released