From cb29615397973129e0dd10f0ce8a9373b054bd8e Mon Sep 17 00:00:00 2001 From: Vadym Slizov Date: Sat, 13 Feb 2021 22:16:54 +0200 Subject: [PATCH] [#120] update readme --- README.md | 61 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 6ce8d53..132d86d 100644 --- a/README.md +++ b/README.md @@ -37,30 +37,44 @@ Usage example package main import ( - "fmt" + "log" "os" - "github.com/z7zmey/php-parser/php7" - "github.com/z7zmey/php-parser/visitor" + "github.com/z7zmey/php-parser/pkg/cfg" + "github.com/z7zmey/php-parser/pkg/errors" + "github.com/z7zmey/php-parser/pkg/parser" + "github.com/z7zmey/php-parser/pkg/version" + "github.com/z7zmey/php-parser/pkg/visitor/dumper" ) func main() { src := []byte(` ... ``` -| flag | type | description | -|-------|------|----------------------------------------------| -| -p | bool | print filepath | -| -d |string| dump format: [custom, go, json, pretty-json] | -| -r | bool | resolve names | -| -ff | bool | parse and show free floating strings | -| -prof |string| start profiler: [cpu, mem, trace] | -| -php5 | bool | parse as PHP5 | - -Dump AST to stdout. +| flag | type | description | +| ------- | ------ | --------------------------------- | +| -p | bool | print filepath | +| -e | bool | print errors | +| -d | bool | dump in golang format | +| -r | bool | resolve names | +| -prof | string | start profiler: [cpu, mem, trace] | +| -phpver | string | php version (default: 7.4) | Namespace resolver ------------------