public boolean InsertSym(int type,String id,String context,String cType,int line,int col){
  int i;
  if (type == PROCEDUREVAR || type == PROCESSVAR || type == PARAMETER) {
    i=FindSym(GLOBAL,id,"");
    if (i < symtab.size())     return false;
    i=FindSym(id,context);
    if (i < symtab.size())     return false;
  }
 else {
    i=FindSym(type,id,context);
    if (i < symtab.size())     return false;
  }
  SymTabEntry se=new SymTabEntry(type,id,context,cType,line,col);
  symtab.addElement(se);
  return true;
}

public boolean InsertSym ( int type , String id , String context , String cType , int line , int col ) { int i ; if ( type == PROCEDUREVAR || type == PROCESSVAR || type == PARAMETER ) { i = FindSym ( GLOBAL , id , "" ) ; if ( i < symtab . size ( ) ) return false ; i = FindSym ( id , context ) ; if ( i < symtab . size ( ) ) return false ; } else { i = FindSym ( type , id , context ) ; if ( i < symtab . size ( ) ) return false ; } SymTabEntry se = new SymTabEntry ( type , id , context , cType , line , col ) ; symtab . addElement ( se ) ; return true ; }
true if inserted ; false if was already in table can not insert a variable of name x if there is a global with name x or another variable in the same context with name x . /
