Home > tinyparser

tinyparser

Tinyparser is a project mainly written in C++, it's free.

parser for a small subset of c written in c++ using flex and bison.

This project uses flex and bison to generate C++ code that parses a subset of the C language.

To build this project type the following into a console: make

To run the program in unix/linux type the following: cat | parser

This will output an abstract syntax tree.

To create a dot file of the control flow graph type in the following: cat | parser -g > example: cat test/text1 | ./parser -g > output.dot

Once the dot file has been created, graphviz can be used to generate a graph from the dot file: dot -Tpdf > or: dot -Tsvg > example: dot output.dot -Tsvg > output.svg

This project works.

Previous:Sample-App