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

Function Declaration and Implementation

Source

// definition on top
int do_stuff()
{
  return 5;
}

Generated AST

Source

int do_stuff();

int do_stuff()
{
    return 5;
}

Generated AST

Source

int do_stuff();

int main()
{
  return do_stuff();
}

int do_stuff()
{
  return 5;
}

Generated AST