exit status 1 expected '}' at end of input

// Define all pin variables
int rsPin = 14;
int ysPin = 15;
int gsPin = 16;
int psPin = 17;
int rwPin = 18;
int ywPin = 19;
int gwPin = 20;
int pwPin = 21;
int rnPin = 22;
int ynPin = 23;
int gnPin = 24;
int pnPin = 25;
int rePin = 26;
int yeePin = 27;
int gnePin = 28;
int pePin = 29;

// the setup function runs once when you press reset or power the board
void setup() {

// initialize digital pins 14 - 29 as output.
pinMode(14, OUTPUT); //controls Red SW
pinMode(15, OUTPUT); //controls Yellow SW
pinMode(16, OUTPUT); //controls Green SW
pinMode(17, OUTPUT); //controls Ped SW
pinMode(18, OUTPUT); //controls Red NE
pinMode(19, OUTPUT); //controls Yellow NE
pinMode(20, OUTPUT); //controls Green NE
pinMode(21, OUTPUT); //controls Ped NE
pinMode(22, OUTPUT); //controls Red NS
pinMode(23, OUTPUT); //controls Yellow NS
pinMode(24, OUTPUT); //controls Green NS
pinMode(25, OUTPUT); //controls Ped NS
pinMode(26, OUTPUT); //controls Red E
pinMode(27, OUTPUT); //controls Yellow E
pinMode(28, OUTPUT); //controls Green E
pinMode(29, OUTPUT); //controls Ped

}

// the loop function runs over and over again forever
void loop() {

{
digitalWrite(14, HIGH);// turn on Red LED SW
digitalWrite(22, HIGH);// turn on Red LED NS
digitalWrite(29, HIGH);// turn on Ped LED E
digitalWrite(21, HIGH);// turn on Ped LED NE
digitalWrite(20, HIGH);// turn on Green LED NE
digitalWrite(28, HIGH);// turn on Green LED E
delay(500); // wait for 5 seconds
digitalWrite(14, LOW);// turn off Red LED SW
digitalWrite(22, LOW);// turn off Red LED NS
digitalWrite(19, HIGH);// turn on Yellow LED NE
digitalWrite(27, HIGH);// turn on Yellow LED E
delay(500); // wait for 5 seconds
digitalWrite(16, HIGH);// turn on Green LED SW
digitalWrite(24, HIGH);// turn on Green LED NS
digitalWrite(18, HIGH);// turn on Red LED NE
digitalWrite(26, HIGH);// turn on Red LED E
digitalWrite(17, HIGH);// turn on PED LED SW
digitalWrite(25, HIGH);// turn on PED LED NS
digitalWrite(19, LOW);// turn off Yellow LED NE
digitalWrite(27, LOW);// turn off Yellow LED E
delay(500);
digitalWrite(15, HIGH);// turn on Yellow LED SW
digitalWrite(24, HIGH);// turn on Yellow LED NS
digitalWrite(18, LOW);// turn off Red LED NE
digitalWrite(26, LOW);// turn off Red LED E
}

A wild guess based on the error message, but you are missing at least one }, maybe more, at the end of the program but that may not be the only problem.

Try Auto format in the IDE. It can highlight such problems as can putting each { and } on its own line

Please read Read this before posting a programming question and follow the recommendations on how to post code here

Simple visual inspection shows you have an extra '{' in your loop() function. Also, delay(500) is not 5 seconds, it is 0.5 seconds.

(deleted)

You go to the trouble to give the pins names (int rsPin = 14;) but don’t use the names.

If you had used the autoformat function of the IDE (ctrl-t or Tools, Auto Format), the error would have been pretty obvious.

int rsPin = 14;
int ysPin = 15;
int gsPin = 16;
int psPin = 17;
int rwPin = 18;
int ywPin = 19;
int gwPin = 20;
int pwPin = 21;
int rnPin = 22;
int ynPin = 23;
int gnPin = 24;
int pnPin = 25;
int rePin = 26;
int yeePin = 27;
int gnePin = 28;
int pePin = 29;

// the setup function runs once when you press reset or power the board
void setup()
{
   // initialize digital pins 14 - 29 as output.
   pinMode(14, OUTPUT);   //controls Red SW
   pinMode(15, OUTPUT);   //controls Yellow SW
   pinMode(16, OUTPUT);   //controls Green SW
   pinMode(17, OUTPUT);   //controls Ped SW
   pinMode(18, OUTPUT);   //controls Red NE
   pinMode(19, OUTPUT);   //controls Yellow NE
   pinMode(20, OUTPUT);   //controls Green NE
   pinMode(21, OUTPUT);   //controls Ped NE
   pinMode(22, OUTPUT);   //controls Red NS
   pinMode(23, OUTPUT);   //controls Yellow NS
   pinMode(24, OUTPUT);   //controls Green NS
   pinMode(25, OUTPUT);   //controls Ped NS
   pinMode(26, OUTPUT);   //controls Red E
   pinMode(27, OUTPUT);   //controls Yellow E
   pinMode(28, OUTPUT);   //controls Green E
   pinMode(29, OUTPUT);   //controls Ped
}

// the loop function runs over and over again forever
void loop()
{
   {
      digitalWrite(14, HIGH);// turn on Red LED SW
      digitalWrite(22, HIGH);// turn on Red LED NS
      digitalWrite(29, HIGH);// turn on Ped LED E
      digitalWrite(21, HIGH);// turn on Ped LED NE
      digitalWrite(20, HIGH);// turn on Green LED NE
      digitalWrite(28, HIGH);// turn on Green LED E
      delay(500);            // wait for 5 seconds
      digitalWrite(14, LOW);// turn off Red LED SW
      digitalWrite(22, LOW);// turn off Red LED NS
      digitalWrite(19, HIGH);// turn on Yellow LED NE
      digitalWrite(27, HIGH);// turn on Yellow LED E
      delay(500);            // wait for 5 seconds
      digitalWrite(16, HIGH);// turn on Green LED SW
      digitalWrite(24, HIGH);// turn on Green LED NS
      digitalWrite(18, HIGH);// turn on Red LED NE
      digitalWrite(26, HIGH);// turn on Red LED E
      digitalWrite(17, HIGH);// turn on PED LED SW
      digitalWrite(25, HIGH);// turn on PED LED NS
      digitalWrite(19, LOW);// turn off Yellow LED NE
      digitalWrite(27, LOW);// turn off Yellow LED E
      delay(500);
      digitalWrite(15, HIGH);// turn on Yellow LED SW
      digitalWrite(24, HIGH);// turn on Yellow LED NS
      digitalWrite(18, LOW);// turn off Red LED NE
      digitalWrite(26, LOW);// turn off Red LED E
   }
// there should be a } here to close the loop() function

Read the how to use this forum-please read sticky to see how to properly post code. Remove useless white space and format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code.