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

Declarations

Source

int main()
{
  int i;
}

Generated AST

Source

int main()
{
  const int i;
}

Generated AST

Source

int main(){
  int x;
  int * y;
  int z[10];
  const int i;
  float j;
  char k;
}

Generated AST

Source

int main()
{
  int g;
  int G;

  g = 5;
  G = g;
}

Generated AST

Source

int main()
{
  int g;
  char a;
  float p;

  g = 5;
  a = 2;
  p = 1.2;
}

Generated AST