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 3AC

Example function

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