From 152a1df1184cf1490d26b62c222153f532005bbf Mon Sep 17 00:00:00 2001 From: "seel.xu" Date: Tue, 15 Jul 2025 11:20:02 +0800 Subject: [PATCH] [Offline]: update doc --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52c2ecc..9442d2a 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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) \ No newline at end of file +*β€œAny sufficiently advanced code parser is indistinguishable from magic.”* – Arthur C. Clarke (remixed)