Skip to content
No description, website, or topics provided.
C++ Makefile C Fortran
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
accumulationStmt.c
accumulationStmt.c.pdf
accumulationStmt.c_WholeAST.dot
accumulationStmt.c_WholeAST.dot.pdf
accumulationStmt.c_WholeAST.dot.png
arrayRefs.cpp
arrayRefs.cpp.pdf
arrayRefs.cpp_WholeAST.dot
arrayRefs.cpp_WholeAST.dot.pdf
arrayRefs.cpp_WholeAST.dot.png
autoKernel.cpp
autoKernel.cpp.pdf
autoKernel.cpp_WholeAST.dot
autoKernel.cpp_WholeAST.dot.pdf
autoKernel.cpp_WholeAST.dot.png
class.cpp
class.cpp.pdf
class.cpp_WholeAST.dot
class.cpp_WholeAST.dot.pdf
class.cpp_WholeAST.dot.png
constType.c
constType.c.pdf
constType.c_WholeAST.dot
constType.c_WholeAST.dot.pdf
constType.c_WholeAST.dot.png
constructor.cpp
constructor.cpp.pdf
constructor.cpp_WholeAST.dot
constructor.cpp_WholeAST.dot.pdf
constructor.cpp_WholeAST.dot.png
forLoop.c
forLoop.c.pdf
forLoop.c_WholeAST.dot
forLoop.c_WholeAST.dot.pdf
forLoop.c_WholeAST.dot.png
func1.c
func1.c.pdf
func1.c_WholeAST.dot
func1.c_WholeAST.dot.pdf
func1.c_WholeAST.dot.png
indirectLambdaCall.cxx
indirectLambdaCall.cxx.pdf
lambda.cxx
lambda.cxx.pdf
makefile
namespace.cpp
namespace.cpp.pdf
namespace.cpp_WholeAST.dot
namespace.cpp_WholeAST.dot.pdf
namespace.cpp_WholeAST.dot.png
parallelfor.c
parallelfor.c.pdf
parallelfor.c_WholeAST.dot
parallelfor.c_WholeAST.dot.pdf
parallelfor.c_WholeAST.dot.png
pointerArray.c
pointerArray.c.pdf
pointerArray.c_WholeAST.dot
pointerArray.c_WholeAST.dot.pdf
pointerArray.c_WholeAST.dot.png
pointerArray.cxx.pdf
set.rose
subroutine1.f
subroutine1.f.pdf
subroutine1.f_WholeAST.dot
subroutine1.f_WholeAST.dot.pdf
subroutine1.f_WholeAST.dot.png
typedefType.c
typedefType.c.pdf
typedefType.c_WholeAST.dot
typedefType.c_WholeAST.dot.pdf
typedefType.c_WholeAST.dot.png
variableDeclaration.c
variableDeclaration.c.pdf
variableDeclaration.c_WholeAST.dot
variableDeclaration.c_WholeAST.dot.pdf
variableDeclaration.c_WholeAST.dot.png

README.md

rose-ast

A repository storing sample C, C++ programs and their corresponding AST graphs.

For example, func1.c has the following AST dump files.

  • PDF file dump using structured bookmarks : func1.c.pdf
  • DOT file dump using dot graph : func1.c_WholeAST.dot
  • PDF file converted from DOT graph : func1.c_WholeAST.dot.pdf
  • PNG file converted from DOT graph : func1.c_WholeAST.dot.png

To view those files, you can try to use

  • xdg-open file.pdf
  • xdg-open file.png
  • zgrviewer-0.8.2/run.sh file.dot

To regenerate all the pdf and dot graphs

  1. Install ROSE
  2. edit set.rose to point to the right path of ROSE installation
  3. type make clean && make all
You can’t perform that action at this time.