Update README.md
This commit is contained in:
parent
f546db54b6
commit
1824f2e5f0
15
README.md
15
README.md
@ -18,6 +18,12 @@ A Parser for PHP written in Go inspired by [Nikic PHP Parser](https://github.com
|
|||||||
- Abstract syntax tree representation
|
- Abstract syntax tree representation
|
||||||
- Traversing AST
|
- Traversing AST
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```
|
||||||
|
go get github.com/z7zmey/php-parser
|
||||||
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
```Golang
|
```Golang
|
||||||
package main
|
package main
|
||||||
@ -42,9 +48,15 @@ func main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## CLI dumper
|
||||||
|
|
||||||
|
```
|
||||||
|
$GOPATH/bin/php-parser /path/to/file/or/dir
|
||||||
|
```
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
- [X] Lexer
|
- [X] Lexer
|
||||||
- [x] PHP 7 syntax analyzer (completely)
|
- [x] PHP 7 syntax analyzer
|
||||||
- [x] AST nodes
|
- [x] AST nodes
|
||||||
- [x] AST visitor
|
- [x] AST visitor
|
||||||
- [x] AST dumper
|
- [x] AST dumper
|
||||||
@ -52,6 +64,7 @@ func main() {
|
|||||||
- [x] handling comments
|
- [x] handling comments
|
||||||
- [x] PHP 5 syntax analyzer
|
- [x] PHP 5 syntax analyzer
|
||||||
- [ ] Tests
|
- [ ] Tests
|
||||||
|
- [ ] PhpDocComment parser
|
||||||
- [ ] Error handling
|
- [ ] Error handling
|
||||||
- [ ] Stabilize api
|
- [ ] Stabilize api
|
||||||
- [ ] Documentation
|
- [ ] Documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user