Go to file
2018-01-09 18:29:05 +02:00
comment extract comments package 2018-01-09 00:30:28 +02:00
node extract positions package 2018-01-09 15:51:32 +02:00
parser extract positions package 2018-01-09 15:51:32 +02:00
position extract positions package 2018-01-09 15:51:32 +02:00
test/node/scalar extract positions package 2018-01-09 15:51:32 +02:00
token fix comments pointers 2018-01-08 21:50:39 +02:00
.gitignore ignore example.php 2018-01-05 13:22:38 +02:00
CODE_OF_CONDUCT.md update CODE_OF_CONDUCT.md 2018-01-05 19:49:29 +02:00
CONTRIBUTING.md create CONTRIBUTING.md 2018-01-05 19:37:08 +02:00
dumper.go extract positions package 2018-01-09 15:51:32 +02:00
ISSUE_TEMPLATE.md Create ISSUE_TEMPLATE.md 2018-01-05 19:23:10 +02:00
LICENSE Create LICENSE 2018-01-02 14:37:19 +02:00
main.go extract positions package 2018-01-09 15:51:32 +02:00
Makefile improve Makefile allow call make run PHPFILE=/path/to/php/file/to/parse 2018-01-05 13:17:59 +02:00
README.md Update README.md 2018-01-09 18:29:05 +02:00

PHP-Parser

A Parser for PHP written in Go inspired by Nikic PHP Parser

Library uses cznic/golex and goyacc

Features:

  • Fully support PHP7 syntax (PHP5 in future)
  • Abstract syntax tree representation

Roadmap

  • Lexer
  • PHP 7 syntax analyzer (completely)
  • AST nodes
  • AST visitor
  • AST dumper
  • node position
  • handling comments
  • Tests
  • Error handling
  • Stabilize api
  • Documentation
  • PHP 5 syntax analyzer
  • Code flow graph
  • Pretty printer