Porting a program from processing to arduino

i have this program I wrote in processing. it converts . and - into morse code: I have been atempting to port it to run on an arduino

int pdot_dash = 1;
int state = 0;
void draw() {
  fill(state);
  rect(25, 25, 50, 50);
}
int code = 3; // 0 International *NOT YET WORKING 1 American*(http://en.wikipedia.org/wiki/File:Morse_comparison.svg) 3 United States Military Telegraph/United States Signal Corps Two-Element Alphabet (http://www.civilwarsignal.org/dotalphabet/AnimatedAlphabet.htm) 
int[] morse = new int[10];
int i = 0;
void keyPressed() {
  if (key == 's') {
    if(pdot_dash==1) print(" ");
    print(" ");
  }
  if (key == ' ' || i==7) {
    i=0;
    if(pdot_dash==1) print(" ");
    morse(code, morse);
    for(int asdf=0; asdf<10; asdf++) morse[asdf]=0;
  }
  if (key == '.') {
    morse[i] = 1;
    i++;
    if(pdot_dash==1) print("."); 
  }
  if (key == '-') {
    morse[i] = 2;
    i++;
    if(pdot_dash==1) print("-");
  }
}
void morse(int code, int[] morse) {
  // . true - false
  if(code == 0) {
         if(dot_dash(morse, '.', '-', '-', '-', '-')) print("1 ");
    else if(dot_dash(morse, '.', '.', '-', '-', '-')) print("2 ");
    else if(dot_dash(morse, '.', '.', '.', '-', '-')) print("3 ");
    else if(dot_dash(morse, '.', '.', '.', '.', '-')) print("4 "); 
    else if(dot_dash(morse, '.', '.', '.', '.', '.')) print("5 ");  
    else if(dot_dash(morse, '-', '.', '.', '.', '.')) print("6 "); 
    else if(dot_dash(morse, '-', '-', '.', '.', '.')) print("7 ");  
    else if(dot_dash(morse, '-', '-', '-', '.', '.')) print("8 ");  
    else if(dot_dash(morse, '-', '-', '-', '-', '.')) print("9 ");   
    else if(dot_dash(morse, '-', '-', '-', '-', '-')) print("0 ");  
    
    else if(dot_dash(morse, '-', '.', '.', '.')) print("b ");
    else if(dot_dash(morse, '-', '.', '-', '.')) print("c ");
    else if(dot_dash(morse, '.', '.', '-', '.')) print("f ");
    else if(dot_dash(morse, '.', '.', '.', '.')) print("h ");
    else if(dot_dash(morse, '.', '-', '-', '-')) print("j ");
    else if(dot_dash(morse, '.', '-', '.', '.')) print("l ");
    else if(dot_dash(morse, '.', '-', '-', '.')) print("p ");
    else if(dot_dash(morse, '-', '-', '.', '-')) print("q ");
    else if(dot_dash(morse, '.', '.', '.', '-')) print("v ");
    else if(dot_dash(morse, '-', '.', '.', '-')) print("x ");
    else if(dot_dash(morse, '-', '.', '-', '-')) print("y ");
    else if(dot_dash(morse, '-', '-', '.', '.')) print("z ");
    
    else if(dot_dash(morse, '-', '.', '.')) print("d ");
    else if(dot_dash(morse, '-', '-', '.')) print("g ");
    else if(dot_dash(morse, '.', '-', '.')) print("r ");
    else if(dot_dash(morse, '.', '.', '.')) print("s ");
    else if(dot_dash(morse, '.', '.', '-')) print("u ");
    else if(dot_dash(morse, '-', '-', '-')) print("o ");
    else if(dot_dash(morse, '.', '-', '-')) print("w ");    
    else if(dot_dash(morse, '-', '.', '-')) print("k ");    
    
    else if(dot_dash(morse, '.', '-')) print("a ");
    else if(dot_dash(morse, '.', '.')) print("i ");
    else if(dot_dash(morse, '-', '-')) print("m ");
    else if(dot_dash(morse, '-', '.')) print("n ");
    
    else if(dot_dash(morse, '.')) print("e ");
    else if(dot_dash(morse, '-')) print("t ");  
  }
  if(code==3) { // . 1 - 2
         if(dot_dash(morse, '.', '-', '-', '.')) print("b ");
    else if(dot_dash(morse, '.', '.', '.', '-')) print("f ");
    else if(dot_dash(morse, '.', '.', '-', '-')) print("g ");
    else if(dot_dash(morse, '-', '.', '-', '.')) print("p ");
    else if(dot_dash(morse, '-', '.', '-', '-')) print("q ");
    else if(dot_dash(morse, '-', '.', '.', '.')) print("v ");
    else if(dot_dash(morse, '.', '-', '.', '.')) print("x ");
    else if(dot_dash(morse, '-', '-', '.', '.')) print("j ");
    else if(dot_dash(morse, '-', '-', '-', '-')) print("z ");
    else if(dot_dash(morse, '-', '-', '.', '-')) print("w ");    
    else if(dot_dash(morse, '.', '-', '.', '-')) print("k ");   
    else if(dot_dash(morse, '-', '.', '.', '-')) print("m ");
        
    else if(dot_dash(morse, '-', '.', '-')) print("c ");
    else if(dot_dash(morse, '-', '.', '.')) print("h ");
    else if(dot_dash(morse, '.', '.', '-')) print("l ");
    else if(dot_dash(morse, '-', '-', '-')) print("y ");
    else if(dot_dash(morse, '.', '-', '-')) print("r ");
    else if(dot_dash(morse, '.', '-', '.')) print("s ");
    else if(dot_dash(morse, '-', '-', '.')) print("u ");
    
    else if(dot_dash(morse, '-', '.')) print("d ");
    else if(dot_dash(morse, '.', '-')) print("o ");    
    else if(dot_dash(morse, '.', '.')) print("a ");
    else if(dot_dash(morse, '-', '-')) print("n ");    
    else if(dot_dash(morse, '-', '.')) print("e ");

    else if(dot_dash(morse, '-')) print("i ");
    else if(dot_dash(morse, '.')) print("t ");  
  }
}
/*
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6, char a7, char a8, char a9) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.') && morse[7]==r(a7 == '.') && morse[8]==r(a8 == '.') && morse[9]==r(a9 == '.')) {
    if(morse[1]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6, char a7, char a8) {
  if(morse[0]==r(a0 == '.')) && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.') && morse[7]==r(a7 == '.') && morse[8]==r(a8 == '.')) {
   if(morse[1]==0) return true;
  }
  return false;
} */
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6, char a7) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.') && morse[7]==r(a7 == '.')) {
    if(morse[8]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.')) {
    if(morse[7]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.')) {
    if(morse[6]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.')) {
    if(morse[5]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.')) {
    if(morse[4]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.')) {
    if(morse[3]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.')) {
    if(morse[2]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0) {
  print(" ");
  if(morse[0]==r(a0 == '.')) {
    if(morse[1]==0) return true;
  }
  return false;
}
int r(boolean x) {
  if(x==true) return 1;
  if(x==false) return 2;
  else print("error");
  return 0;
}

when I run the following code:

continuing previos post

when i try to compile the following code:

int pdot_dash = 1;
int state = 0;
void draw() {
  fill(state);
  rect(25, 25, 50, 50);
}
int code = 3; // 0 International *NOT YET WORKING 1 American*(http://en.wikipedia.org/wiki/File:Morse_comparison.svg) 3 United States Military Telegraph/United States Signal Corps Two-Element Alphabet (http://www.civilwarsignal.org/dotalphabet/AnimatedAlphabet.htm) 
int[] morse = new int[10];
int i = 0;
void keyPressed() {
  if (key == 's') {
    if(pdot_dash==1) print(" ");
    print(" ");
  }
  if (key == ' ' || i==7) {
    i=0;
    if(pdot_dash==1) print(" ");
    morse(code, morse);
    for(int asdf=0; asdf<10; asdf++) morse[asdf]=0;
  }
  if (key == '.') {
    morse[i] = 1;
    i++;
    if(pdot_dash==1) print("."); 
  }
  if (key == '-') {
    morse[i] = 2;
    i++;
    if(pdot_dash==1) print("-");
  }
}
void morse(int code, int[] morse) {
  // . true - false
  if(code == 0) {
         if(dot_dash(morse, '.', '-', '-', '-', '-')) print("1 ");
    else if(dot_dash(morse, '.', '.', '-', '-', '-')) print("2 ");
    else if(dot_dash(morse, '.', '.', '.', '-', '-')) print("3 ");
    else if(dot_dash(morse, '.', '.', '.', '.', '-')) print("4 "); 
    else if(dot_dash(morse, '.', '.', '.', '.', '.')) print("5 ");  
    else if(dot_dash(morse, '-', '.', '.', '.', '.')) print("6 "); 
    else if(dot_dash(morse, '-', '-', '.', '.', '.')) print("7 ");  
    else if(dot_dash(morse, '-', '-', '-', '.', '.')) print("8 ");  
    else if(dot_dash(morse, '-', '-', '-', '-', '.')) print("9 ");   
    else if(dot_dash(morse, '-', '-', '-', '-', '-')) print("0 ");  
    
    else if(dot_dash(morse, '-', '.', '.', '.')) print("b ");
    else if(dot_dash(morse, '-', '.', '-', '.')) print("c ");
    else if(dot_dash(morse, '.', '.', '-', '.')) print("f ");
    else if(dot_dash(morse, '.', '.', '.', '.')) print("h ");
    else if(dot_dash(morse, '.', '-', '-', '-')) print("j ");
    else if(dot_dash(morse, '.', '-', '.', '.')) print("l ");
    else if(dot_dash(morse, '.', '-', '-', '.')) print("p ");
    else if(dot_dash(morse, '-', '-', '.', '-')) print("q ");
    else if(dot_dash(morse, '.', '.', '.', '-')) print("v ");
    else if(dot_dash(morse, '-', '.', '.', '-')) print("x ");
    else if(dot_dash(morse, '-', '.', '-', '-')) print("y ");
    else if(dot_dash(morse, '-', '-', '.', '.')) print("z ");
    
    else if(dot_dash(morse, '-', '.', '.')) print("d ");
    else if(dot_dash(morse, '-', '-', '.')) print("g ");
    else if(dot_dash(morse, '.', '-', '.')) print("r ");
    else if(dot_dash(morse, '.', '.', '.')) print("s ");
    else if(dot_dash(morse, '.', '.', '-')) print("u ");
    else if(dot_dash(morse, '-', '-', '-')) print("o ");
    else if(dot_dash(morse, '.', '-', '-')) print("w ");    
    else if(dot_dash(morse, '-', '.', '-')) print("k ");    
    
    else if(dot_dash(morse, '.', '-')) print("a ");
    else if(dot_dash(morse, '.', '.')) print("i ");
    else if(dot_dash(morse, '-', '-')) print("m ");
    else if(dot_dash(morse, '-', '.')) print("n ");
    
    else if(dot_dash(morse, '.')) print("e ");
    else if(dot_dash(morse, '-')) print("t ");  
  }
  if(code==3) { // . 1 - 2
         if(dot_dash(morse, '.', '-', '-', '.')) print("b ");
    else if(dot_dash(morse, '.', '.', '.', '-')) print("f ");
    else if(dot_dash(morse, '.', '.', '-', '-')) print("g ");
    else if(dot_dash(morse, '-', '.', '-', '.')) print("p ");
    else if(dot_dash(morse, '-', '.', '-', '-')) print("q ");
    else if(dot_dash(morse, '-', '.', '.', '.')) print("v ");
    else if(dot_dash(morse, '.', '-', '.', '.')) print("x ");
    else if(dot_dash(morse, '-', '-', '.', '.')) print("j ");
    else if(dot_dash(morse, '-', '-', '-', '-')) print("z ");
    else if(dot_dash(morse, '-', '-', '.', '-')) print("w ");    
    else if(dot_dash(morse, '.', '-', '.', '-')) print("k ");   
    else if(dot_dash(morse, '-', '.', '.', '-')) print("m ");
        
    else if(dot_dash(morse, '-', '.', '-')) print("c ");
    else if(dot_dash(morse, '-', '.', '.')) print("h ");
    else if(dot_dash(morse, '.', '.', '-')) print("l ");
    else if(dot_dash(morse, '-', '-', '-')) print("y ");
    else if(dot_dash(morse, '.', '-', '-')) print("r ");
    else if(dot_dash(morse, '.', '-', '.')) print("s ");
    else if(dot_dash(morse, '-', '-', '.')) print("u ");
    
    else if(dot_dash(morse, '-', '.')) print("d ");
    else if(dot_dash(morse, '.', '-')) print("o ");    
    else if(dot_dash(morse, '.', '.')) print("a ");
    else if(dot_dash(morse, '-', '-')) print("n ");    
    else if(dot_dash(morse, '-', '.')) print("e ");

    else if(dot_dash(morse, '-')) print("i ");
    else if(dot_dash(morse, '.')) print("t ");  
  }
}
/*
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6, char a7, char a8, char a9) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.') && morse[7]==r(a7 == '.') && morse[8]==r(a8 == '.') && morse[9]==r(a9 == '.')) {
    if(morse[1]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6, char a7, char a8) {
  if(morse[0]==r(a0 == '.')) && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.') && morse[7]==r(a7 == '.') && morse[8]==r(a8 == '.')) {
   if(morse[1]==0) return true;
  }
  return false;
} */
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6, char a7) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.') && morse[7]==r(a7 == '.')) {
    if(morse[8]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5, char a6) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.') && morse[6]==r(a6 == '.')) {
    if(morse[7]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4, char a5) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.') && morse[5]==r(a5 == '.')) {
    if(morse[6]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3, char a4) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.') && morse[4]==r(a4 == '.')) {
    if(morse[5]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2, char a3) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.') && morse[3]==r(a3 == '.')) {
    if(morse[4]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1, char a2) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.') && morse[2]==r(a2 == '.')) {
    if(morse[3]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0, char a1) {
  if(morse[0]==r(a0 == '.') && morse[1]==r(a1 == '.')) {
    if(morse[2]==0) return true;
  }
  return false;
}
boolean dot_dash(int[] morse, char a0) {
  print(" ");
  if(morse[0]==r(a0 == '.')) {
    if(morse[1]==0) return true;
  }
  return false;
}
int r(boolean x) {
  if(x==true) return 1;
  if(x==false) return 2;
  else print("error");
  return 0;
}

here is the error message:
I get this error:
civil_war_project:-1: error: expected ',' or '...' before 'morse'
civil_war_project:-1: error: expected ',' or '...' before 'morse'
civil_war_project:-1: error: expected ',' or '...' before 'morse'
civil_war_project:0: error: expected ',' or '...' before 'morse'
civil_war_project:1: error: expected ',' or '...' before 'morse'
civil_war_project:2: error: expected ',' or '...' before 'morse'
civil_war_project:3: error: expected ',' or '...' before 'morse'
civil_war_project:4: error: expected ',' or '...' before 'morse'
civil_war_project:5: error: expected ',' or '...' before 'morse'
civil_war_project:14: error: 'int morse [10]' redeclared as different kind of symbol
civil_war_project:-1: error: previous declaration of 'void morse(int, int*)'
civil_war_project:43: error: expected ',' or '...' before 'morse'
civil_war_project.cpp: In function 'void morse(int, int*)':
civil_war_project:47: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:47: error: 'print' was not declared in this scope
civil_war_project:48: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:48: error: 'print' was not declared in this scope
civil_war_project:49: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:49: error: 'print' was not declared in this scope
civil_war_project:50: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:50: error: 'print' was not declared in this scope
civil_war_project:51: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:51: error: 'print' was not declared in this scope
civil_war_project:52: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:52: error: 'print' was not declared in this scope
civil_war_project:53: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:53: error: 'print' was not declared in this scope
civil_war_project:54: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:54: error: 'print' was not declared in this scope
civil_war_project:55: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:55: error: 'print' was not declared in this scope
civil_war_project:56: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:56: error: 'print' was not declared in this scope
civil_war_project:58: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:58: error: 'print' was not declared in this scope
civil_war_project:59: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:59: error: 'print' was not declared in this scope
civil_war_project:60: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:60: error: 'print' was not declared in this scope
civil_war_project:61: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:61: error: 'print' was not declared in this scope
civil_war_project:62: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:62: error: 'print' was not declared in this scope
civil_war_project:63: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:63: error: 'print' was not declared in this scope
civil_war_project:64: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:64: error: 'print' was not declared in this scope
civil_war_project:65: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:65: error: 'print' was not declared in this scope
civil_war_project:66: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:66: error: 'print' was not declared in this scope
civil_war_project:67: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:67: error: 'print' was not declared in this scope
civil_war_project:68: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:68: error: 'print' was not declared in this scope
civil_war_project:69: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:69: error: 'print' was not declared in this scope
civil_war_project:71: error: cannot convert 'void ()(int, int)' to 'int*' for argument '1' to 'boolean dot_dash(int*)'
civil_war_project:71: error: 'print' was not declared in this scope

then it continues with 100 lines of more errors

I am running arduino 0022 and processing 0191 on a macbook with snow leopard

Processing sketches are written in Java. Arduino sketches are written in C/C++. You can not compile Java source code using a C++ compiler.