How bdqnghi/graph-ast works
This repository is an fAST example bundle, not the parser or graph-generation implementation: the README documents the product workflow, while the tree contains sample inputs, generated artifacts, type tables, and a small pickle-loading example. The principal documented path is source code to serialized AST to graph output. Edges for the documented CLI workflow cite the README; the graph-generation internals cannot be verified from the available source.
Main entry points: Bubblesort.txt AST graph · Bubblesort.fbs Flatbuffer AST · sample_files Source examples · traverse_tree_sample.py Pickle loader
Components 11
Language examples
- Source examples
sample_files
AST artifacts
- Protobuf AST
sample_files/Java/Bubblesort.pb - Flatbuffer AST
sample_files/Java/Bubblesort.fbs - Pickled AST
sample_files/Java/Bubblesort.pkl
Graph outputs
- AST graph
sample_files/Java/Bubblesort.txt - Node types
types/srcml_node_types.tsv - Edge types
types/edge_types.tsv
Sample utility
- Pickle loader
traverse_tree_sample.py
Other components
- Tool user
- fAST CLI
- Graph generator
Connections 9
- Tool user → fAST CLI: runs CLI
README.md - Source examples → fAST CLI: parses source
README.md - fAST CLI → Protobuf AST: writes AST
README.md - fAST CLI → Flatbuffer AST: writes AST
README.md - Flatbuffer AST → Graph generator: feeds input
README.md - Graph generator → AST graph: writes graph
README.md - AST graph → Node types: uses type table
README.md - AST graph → Edge types: uses type table
README.md - Pickle loader → Pickled AST: loads pickle
traverse_tree_sample.py