Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2018 (7)
20082026
  1. 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
  2. …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…