compiler/LexTest/Symbol_Table.cpp
//we only insert class or interface to my namespace
//don't insert interface and class with same name very GOOOOOOOOOOOOD

we only insert class or interface to my namespace
don't insert interface and class with same name very GOOOOOOOOOOOOD
we only insert class or interface to my namespace don ' t insert interface and class with same name very GOOOOOOOOOOOOD
bool NameSpace::searchNameSpace(Symbol *add)
{
	list <Symbol *> ::const_iterator i=Local.begin();
	bool ok=false;
	while (!ok && i!=Local.end())
	{
		Symbol *temp=(Symbol *) *i;
		if ((strcmp (temp->name,add->name)==0))
			ok=true; 
		i++;
	}
	return ok;
}
bool NameSpace :: searchNameSpace ( Symbol * add ) { list < Symbol * > :: const_iterator i = Local . begin ( ) ; bool ok = false ; while ( ! ok && i != Local . end ( ) ) { Symbol * temp = ( Symbol * ) * i ; if ( ( strcmp ( temp -> name , add -> name ) == 0 ) ) ok = true ; i ++ ; } return ok ; }
we only insert class or interface to my namespace
don't insert interface and class with same name very GOOOOOOOOOOOOD
we only insert class or interface to my namespace don ' t insert interface and class with same name very GOOOOOOOOOOOOD
//if i have insert namespace'name same with my namespace' name
