Hacker GitHub

← All repos

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

Mentions per year 16 mentions · busiest year 2024 (5)
20082026
  1. …gets 8.4 rules out, this will be pretty awesome: https://github.com/rectorphp/rector/issues/8701 https://github.com/nikic/PHP-Parser/commit/7b0384cdbe03431c4...
    comment by klaussilveira · 2024-11-22 · in PHP 8.4
  2. 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.
  3. 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)
  4. …working. I hadn't encountered LSIF before – can GitHub be configured to use those maps? [0] https://github.com/nikic/PHP-Parser
  5. …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.…
  6. …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
  7. There's a php implemented php->AST parser here: https://github.com/nikic/PHP-Parser
  8. …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
  9. …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
  10. …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
  11. 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
  12. 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
  13. 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