Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Powered by Clang AST dissection, Bazel/Docker industrial pipelines, and JSON tha
### Pre-built Release (For Binary Cowboys)

``` bash
./astroparse-linux-amd64 -i your_code.cpp -o output.json
./astroparse-linux-amd64 your_code.cpp
```

### Build from source
Expand All @@ -47,6 +47,19 @@ Build the code
./scripts/build.sh
```

### Generate AST json for example

Gen `compile_commands.json`
``` bash
./scripts/update_compile_commands.sh
```

Get AST json file
```bash
./bazel-bin/astroparse/astroparse /AstroParse/parse/util.cc
```


------

## 🚀 Demo
Expand Down Expand Up @@ -110,4 +123,4 @@ public:

**Crafted with ❤️ and Clang by Seel.Xu**

*“Any sufficiently advanced code parser is indistinguishable from magic.”* – Arthur C. Clarke (remixed)
*“Any sufficiently advanced code parser is indistinguishable from magic.”* – Arthur C. Clarke (remixed)