View on GitHub

JST

By Janelle Blankenburg, Shubham Gogna, and Terence Henriod
UNR CS 660: Compiler Construction

Download this project as a .zip file Download this project as a tar.gz file

Generating ASTs

Example function

def my_custom_ast(self):
    data = """
        // Put code here!
        // int main() {int i[5][7];}
        """
    ast = self.parser.parse(data)
    print(ast.to_graph_viz_str())