nikic/PHP-Parser
View on GitHub ↗ ★ 17,464 PHP
A PHP parser written in PHP
16 mentions on Hacker News by 15 people: 3 stories, 13 comments · first 2011-08-10 · latest 2024-11-22
20082026
-
https://github.com/nikic/php-parser is neat, but not unique to PHP. See https://docs.python.org/3.8/library/ast.html for example.
comment by hu3 · 2024-09-03 · in PHP Is the Best Choice for Long‑Term Business -
heh, I'm sad it doesn't parse its own source in the tests ... or maybe it does < https://github.com/nikic/PHP-Parser/blob/v5.1.0/test/bootstr... >, who knows (joking but not joking)
comment by mdaniel · 2024-08-25 · in PHP-Parser: A Native PHP Parser for Parsing and Analyzing PHP Code -
…working. I hadn't encountered LSIF before – can GitHub be configured to use those maps? [0] https://github.com/nikic/PHP-Parser
comment by muglug · 2021-02-23 · in Tree-sitter: an incremental parsing system for programming tools -
…this? Just static analysis? If that is it, you'd probably be better off just using the PHP parser ( https://github.com/nikic/PHP-Parser ). If you are writing analyzers for PHP, you must know it enough to right an analyzer in actual PHP.…
comment by pknopf · 2018-03-02 · in Php-parser written in golang v0.3 is released -
…make a PHP7 to PHP5 converter: https://murze.be/2016/03/converting-php-7-code-equivalent-ph... [1] https://github.com/nikic/PHP-Parser
comment by tyingq · 2017-05-06 · in Code as text is a problem -
There's a php implemented php->AST parser here: https://github.com/nikic/PHP-Parser
comment by tyingq · 2017-01-03 · in Programming languages that are actively developed on GitHub -
…pesky old bad habits. This one is ok. [2] [1] https://github.com/squizlabs/PHP_CodeSniffer [2] https://github.com/nikic/PHP-Parser
comment by labrador · 2016-11-06 · in Online PHP Coding Standards Fixer -
…array method parameter ordering? No need -- use Collections and use methods on the primitives! [0] https://github.com/nikic/PHP-Parser
comment by girvo · 2015-05-15 · in In Defence of WordPress -
…is written in PHP, for a subset of the PHP language [2]. So yeah, it is already happening. [0] https://github.com/nikic/PHP-Parser [1] https://github.com/ircmaxell/PHPPHP [2] https://github.com/google/recki-ct
comment by juriansluiman · 2014-10-22 · in A brainfuck compiler written in PHP -
And here's a PHP parser written in PHP... https://github.com/nikic/PHP-Parser
comment by 8ig8 · 2014-07-27 · in Parsing PHP in Go -
A lot of them are installed via composer (see the PHP-Parser project for most of them): https://github.com/nikic/PHP-Parser
comment by ircmaxell · 2012-12-30 · in PHPPHP: a PHP VM in PHP -
There is many PHP parsers in a few languages: Some standalone: https://github.com/nikic/PHP-Parser http://pear.php.net/package/PHP_Parser Some part of other projects: https://github.com/facebook/hiphop-php…
comment by fooyc · 2011-08-10 · in Underscore.php