Skip to content

pollow/RacketCallGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RacketCallGraph

A simple Python script that generate Call Graph of simple Racket program by generating dot language scripts.

It uses naive approach that basically traverse the program and maintain a state machine regardless of context.

Currently it only maintain a FSM so advance features of Racket, like lambda-function is not support, will improve if needed in the future.

This simple script is developed for PDP course in Northeastern University.

Usage

This script will only generate dot language script, please install Graphviz(http://www.graphviz.org/) or other compiler to generate readable graph.

The dot script is not optimized, please use unflatten, provided by Graphviz, to minimize the size of graph.

One line command usage:

>> python3 call_graph.py your_proram.rkt && unflatten -l3 callgraph.dot | dot -Tjpg -o graph.jpg

Contribution

Contribution is welcomed.

About

A simple Python script that generate Call Graph of simple Racket program.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages