php-parser/README.md

31 lines
737 B
Markdown
Raw Normal View History

2018-01-02 12:41:54 +00:00
<!--
Title: PHP Parser
Description: A Parser for PHP written in Go.
Author: Slizov Vadim
-->
# PHP-Parser
2018-01-05 09:53:00 +00:00
A Parser for PHP written in Go inspired by [Nikic PHP Parser](https://github.com/nikic/PHP-Parser)
2018-01-02 12:34:26 +00:00
2018-01-09 16:29:05 +00:00
Library uses [cznic/golex](https://github.com/cznic/golex) and [goyacc](https://godoc.org/golang.org/x/tools/cmd/goyacc)
## Features:
- Fully support PHP7 syntax (PHP5 in future)
- Abstract syntax tree representation
2018-01-02 12:41:54 +00:00
## Roadmap
2018-01-02 12:34:26 +00:00
- [X] Lexer
2018-01-05 17:48:20 +00:00
- [x] PHP 7 syntax analyzer (completely)
2018-01-02 12:34:26 +00:00
- [x] AST nodes
2018-01-02 12:41:54 +00:00
- [x] AST visitor
2018-01-04 22:33:50 +00:00
- [x] AST dumper
- [x] node position
2018-01-05 15:03:59 +00:00
- [x] handling comments
2018-01-02 12:41:54 +00:00
- [ ] Tests
2018-01-09 16:29:05 +00:00
- [ ] Error handling
- [ ] Stabilize api
2018-01-02 12:41:54 +00:00
- [ ] Documentation
2018-01-02 12:34:26 +00:00
- [ ] PHP 5 syntax analyzer
- [ ] Code flow graph
2018-01-05 09:53:00 +00:00
- [ ] Pretty printer